Question Where did my main form go???

richardv2

New member
Joined
Feb 15, 2014
Messages
3
Programming Experience
10+
New to VC# 2012 Express. Some experience with C, Python, VB and IDEs in general.

Doing great building my first program until I opened it for about the fifth time.
The main form isn't there.??
I can build the program and run it, so I know it is there. Nothing in the "View" menu seems to help.
How do I get it back, and what did I do to lose it? I'm afraid to do much. I don't want to lose the work I've done.
 

richardv2

New member
Joined
Feb 15, 2014
Messages
3
Programming Experience
10+
Are you saying that there is no node in the Solution Explorer for your startup form? What if you click the Show All Files button?

I found my form, but I have no idea how to do it again...

When I click on Show All Files, I see the list under "Class View".

Clicking the arrow next to my program name (Flags04), I see "frmFlags" (the name of my form)

Under that, I open "Base Types".

Clicking on "Form" shows me all the code I wrote.

The other tab under frmFlags is "Program"
Under that, and under "Base Types", I can click on "Object" and get a long list of what looks like functions, modules or event handlers.
As I continue down the entire list I get results, but nothing that looks like my form.

Eventually, I just kept clicking until on one screen, I saw "flags.cs", which when clicked, showed me my form.

By now, I have no idea how I got to "flags.cs" or how to get back there again.

Just above this window is a new search box labeled "Search Solutions Explorer"

How do I get back here if I lose my form again?
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
4,924
Location
Sydney, Australia
Programming Experience
10+
Don't worry about Class View. The Solution Explorer is the important one here. Can you see a node in the Solution Explorer for your form with Show All Files disabled and with it enabled?
 
Top Bottom