Lost my Design view for a Windows Form (VB 2005)

R

Ryan

I have 2 forms, Form1.vb and Form2.vb.
In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have the
option to open Form2.vb [design] in the main explorer window where usually I
have the design view options for any forms.
I don't get it. Why can I not get back to design view for Form2??

Thanks,
Ryan
 
C

Chris Dunaway

Ryan said:
I have 2 forms, Form1.vb and Form2.vb.
In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have the
option to open Form2.vb [design] in the main explorer window where usually I
have the design view options for any forms.
I don't get it. Why can I not get back to design view for Form2??

Thanks,
Ryan

I have seen this before. I got around it by simply adding another
blank form to the project. Once I did that, my other form came back
and I deleted the unneeded form.

You might also try right clicking on it and choose open with designer.
 
R

Ryan

I tried both yours and Chris' suggestions and am still having the same
problem. I don't get it.. the form still works properly when I debug the
application (F5), but I cannot get to its design view. I've looked at the
designer.vb files (which I have not modified) and they both inherit from
System.Windows.Forms.Form

Partial Class Form1
Inherits System.Windows.Forms.Form

The Icon for "View Designer" is not available at the top of the Solution
Explorer for Form2.vb nor is it an option when I right click on Form2.vb
(View Designer is an option in both placed for Form1.vb).

Thanks,
Ryan

Ken Tucker said:
Hi,

If Chris's suggestion does not work close visual studio and open it
from the command promt and reset visual studio's settings.

devenv /resetsettings

http://msdn2.microsoft.com/en-us/ms241273.aspx

Ken
------------------------------

Ryan said:
I have 2 forms, Form1.vb and Form2.vb.
In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have
the
option to open Form2.vb [design] in the main explorer window where
usually I
have the design view options for any forms.
I don't get it. Why can I not get back to design view for Form2??

Thanks,
Ryan
 
R

Ryan

Nevermind I found the problem. There was no public Class declaration in the
code behind Form2.vb. Must have deleted everything out of there by mistake
when deleting out some other code. Once I added this to the code behind
Form2.vb it worked fine:

Public Class Form2

End Class

Ryan said:
I tried both yours and Chris' suggestions and am still having the same
problem. I don't get it.. the form still works properly when I debug the
application (F5), but I cannot get to its design view. I've looked at the
designer.vb files (which I have not modified) and they both inherit from
System.Windows.Forms.Form

Partial Class Form1
Inherits System.Windows.Forms.Form

The Icon for "View Designer" is not available at the top of the Solution
Explorer for Form2.vb nor is it an option when I right click on Form2.vb
(View Designer is an option in both placed for Form1.vb).

Thanks,
Ryan

Ken Tucker said:
Hi,

If Chris's suggestion does not work close visual studio and open it
from the command promt and reset visual studio's settings.

devenv /resetsettings

http://msdn2.microsoft.com/en-us/ms241273.aspx

Ken
------------------------------

Ryan said:
I have 2 forms, Form1.vb and Form2.vb.
In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have
the
option to open Form2.vb [design] in the main explorer window where
usually I
have the design view options for any forms.
I don't get it. Why can I not get back to design view for Form2??

Thanks,
Ryan
 
C

Cor Ligthert [MVP]

Ryan,

Are you famaliar with the Show All files icon from the Solution Explorer it
is in Top of the Box.
I have the idea that you would have found it than earlier.

Cor


Ryan said:
Nevermind I found the problem. There was no public Class declaration in
the code behind Form2.vb. Must have deleted everything out of there by
mistake when deleting out some other code. Once I added this to the code
behind Form2.vb it worked fine:

Public Class Form2

End Class

Ryan said:
I tried both yours and Chris' suggestions and am still having the same
problem. I don't get it.. the form still works properly when I debug the
application (F5), but I cannot get to its design view. I've looked at the
designer.vb files (which I have not modified) and they both inherit from
System.Windows.Forms.Form

Partial Class Form1
Inherits System.Windows.Forms.Form

The Icon for "View Designer" is not available at the top of the Solution
Explorer for Form2.vb nor is it an option when I right click on Form2.vb
(View Designer is an option in both placed for Form1.vb).

Thanks,
Ryan

Ken Tucker said:
Hi,

If Chris's suggestion does not work close visual studio and open
it
from the command promt and reset visual studio's settings.

devenv /resetsettings

http://msdn2.microsoft.com/en-us/ms241273.aspx

Ken
------------------------------

:

I have 2 forms, Form1.vb and Form2.vb.
In Solution Explorer, Form2.vb no longer shows a Form icon nor do I
have the
option to open Form2.vb [design] in the main explorer window where
usually I
have the design view options for any forms.
I don't get it. Why can I not get back to design view for Form2??

Thanks,
Ryan
 
R

Ryan

Yes I am familiar with the "show all files" icon.

Thanks,
Ryan

Cor Ligthert said:
Ryan,

Are you famaliar with the Show All files icon from the Solution Explorer
it is in Top of the Box.
I have the idea that you would have found it than earlier.

Cor


Ryan said:
Nevermind I found the problem. There was no public Class declaration in
the code behind Form2.vb. Must have deleted everything out of there by
mistake when deleting out some other code. Once I added this to the code
behind Form2.vb it worked fine:

Public Class Form2

End Class

Ryan said:
I tried both yours and Chris' suggestions and am still having the same
problem. I don't get it.. the form still works properly when I debug the
application (F5), but I cannot get to its design view. I've looked at
the designer.vb files (which I have not modified) and they both inherit
from System.Windows.Forms.Form

Partial Class Form1
Inherits System.Windows.Forms.Form

The Icon for "View Designer" is not available at the top of the Solution
Explorer for Form2.vb nor is it an option when I right click on Form2.vb
(View Designer is an option in both placed for Form1.vb).

Thanks,
Ryan

message Hi,

If Chris's suggestion does not work close visual studio and open
it
from the command promt and reset visual studio's settings.

devenv /resetsettings

http://msdn2.microsoft.com/en-us/ms241273.aspx

Ken
------------------------------

:

I have 2 forms, Form1.vb and Form2.vb.
In Solution Explorer, Form2.vb no longer shows a Form icon nor do I
have the
option to open Form2.vb [design] in the main explorer window where
usually I
have the design view options for any forms.
I don't get it. Why can I not get back to design view for Form2??

Thanks,
Ryan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top