Newbie - Probably a stupid question...
I just got Visual Studio 2005. I was making a project in VB, saved it, took a long holiday weekend, and then decided to get back to work on it. I load the project and up comes the code, but I can't (for the life of me) figue out how to open the form in design view (to add buttons, text boxes, etc.)
Someone please help before I put my foot through the wall. Thanks.
Re: Newbie - Probably a stupid question...
Double click on Form1.cs.
Re: Newbie - Probably a stupid question...
I don't see a .cs file. I see two .vb files and a .resx file.
Re: Newbie - Probably a stupid question...
Quote:
Originally Posted by cmoloney
I just got Visual Studio 2005. I was making a project in VB, saved it, took a long holiday weekend, and then decided to get back to work on it. I load the project and up comes the code, but I can't (for the life of me) figue out how to open the form in design view (to add buttons, text boxes, etc.)
Someone please help before I put my foot through the wall. Thanks.
Hi,
Let's try,
Open your Visual Basic 2005 program, then open your project, then open your project and then open the solution object of your project.
Normaly that's how I open a project.
Hope it helps,
sparrow1
Re: Newbie - Probably a stupid question...
You double click on the Form1.vb file or select the Form1.vb file and then click the View Designer button at the top of the Solution Explorer.
Re: Newbie - Probably a stupid question...
Try double clicking the Form1.vb in the sloution exporer. (Or whaterver you named the form.)
Re: Newbie - Probably a stupid question...
Hmmm... Still nothing.
I open Visual Studio. Then I do File->Open Project->filename.vbproj
I get a blank screen, but the play button is active. If I hit it, I can see my partial project in action, but when I hit stop I get no code, and no form!
If I open Solution Explorer, I can get to the code, but I don't see anywhere to get to the form. :confused:
1 Attachment(s)
Re: Newbie - Probably a stupid question...
Did you create a Windows Forms application project in the first place?
Re: Newbie - Probably a stupid question...
I don't get the 'View Designer' option...
My options are 'view code' or 'view class diagram'
I can see my form if I hit the play button, but I can't open it to edit it.
Re: Newbie - Probably a stupid question...
Is it possible that I didn't save the form?? If so, is there a way to reverse engineer it from the code?
Re: Newbie - Probably a stupid question...
It's possible that you didn't create a windows application at all. Post a screenshot of your Visual Studio window with the Solution Explorer visible.
1 Attachment(s)
Re: Newbie - Probably a stupid question...
When I created the project I did File->New Project->Windows Application->Open
Re: Newbie - Probably a stupid question...
Hi I dont see a form. If you go to the top under view and the second listing should say designer. Click it. Or you can also press shift+F7
Re: Newbie - Probably a stupid question...
I guess it would seem that I didn't save the form somehow, or I deleted it somehow. I guess I'm just a fool. Thank you everyone for your help. As for me, back to square one. Yippie!
Re: Newbie - Probably a stupid question...
Why does that look like a shortcut?
Re: Newbie - Probably a stupid question...
It looks like you created a Console Application, essentially a DOS application which does not use forms.
Re: Newbie - Probably a stupid question...
If you want to do anyway with this, attach full solution with all files packed in a ZIP or RAR, i will see if there is anything to do with this...