Lost GUI design tab

  • Thread starter Thread starter Ville Saalo
  • Start date Start date
V

Ville Saalo

I had VB 2005 Express Edition running when my computer crashed with a
blue screen of death. Luckily I had saved the project I was working on
so I didn't lose it. However, when I load it again, I cannot access the
tab where I could design the graphical user interface of the program. I
only see the code. I bet it has some simple option somewhere, but I
just cannot locate it. The program does run fine anyway when I try it.

Another question: Is there an option to show only the code that I have
written? Currently the code window is spammed with automatically
generated code, lines such as
"Friend WithEvents PictureBox57 As System.Windows.Forms.PictureBox".

-Ville
 
Hai:
You can hide the visual studio code from the editor by clicking the --
button next to the
#Region " Windows Form Designer generated code "

I am not sure why you are not able to see the design view of the
program but it happened to me also some time before.

Hope it helps.
 
IdleBrain said:
Hai:
You can hide the visual studio code from the editor by clicking the --
button next to the
#Region " Windows Form Designer generated code "

I am not sure why you are not able to see the design view of the
program but it happened to me also some time before.

The "-" button still leaves me with the "Form1 (Declarations)" section.
Sure, it does have a few lines of my own code but it also has dozens of
lines of pre-generated code.

I tried starting another project and closing the form designer tab
there. I was able to get it easily back by right-clicking Form1.vb at
the Solution Explorer and selecting View Designer. However, in my
current project Form1.vb has, for some reason, sub parts
Form1.designer.vb and Form1.resx. Only Form1.resx has the option to
View Designer but in it the designer is just some strange tab with
Name, Value and Comment columns -- nothing like the form designer.

-Ville
 
Back
Top