CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2007
    Posts
    72

    Visual C# 2008 express- really dumb questions

    I feel really dumb asking this but I havent been able to find the answer for a couple of days and its bugging me.

    1. When I start a new project, all it has is the option to name it, but not to designate a destination. I have seen this option in tutorials so Im not sure how to enable it.

    2. When my project is started the form is not in grid view. It just has the plain background but I would like to see the grid. How do I do this?

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Visual C# 2008 express- really dumb questions

    The express versions allow you to create projects in-memory like we had in Visual Studio 6. In order to save your work, you would actually need to save the project, this is the time when it actually creates the project on your hard drive.

    Regarding the second question, there should Options in tools menu which will let us select the way the form is shown in the design mode.

  3. #3
    Join Date
    Mar 2007
    Posts
    72

    Re: Visual C# 2008 express- really dumb questions

    Oh okay. I couldn't find the option to see grid view but thats not too important right now.
    One more thing, can you tell me whats wrong with this code:

    Code:
    1. int intDeposit;
    2.            intDeposit = Convert.ToInt32(lblOutDepositBox.Text);
    3.            lblOutDepositBox.Text = Convert.ToString(
    4.                Int32.Parse(txtInDeposit.Text) + intDeposit);
    If I comment out line 2 and remove +intDeposit from line 4 the program runs but when I leave them in I get the "input string was not in correct format" run-time error.

  4. #4
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Visual C# 2008 express- really dumb questions

    Did you try using int.Parse() method instead of Convert.ToInt32. I tried the code above and it is working properly for me. What values are present in the label?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured