|
-
March 28th, 2009, 02:02 PM
#1
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?
-
March 28th, 2009, 02:17 PM
#2
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.
-
March 28th, 2009, 03:13 PM
#3
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.
-
March 28th, 2009, 04:38 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|