Click to See Complete Forum and Search --> : Visual C# 2008 express- really dumb questions


lmpb17
March 28th, 2009, 02:02 PM
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?

Shuja Ali
March 28th, 2009, 02:17 PM
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.

lmpb17
March 28th, 2009, 03:13 PM
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:


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.

Shuja Ali
March 28th, 2009, 04:38 PM
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?