Windows Form Designer

G

Guest

Why does my code window NOT display the "Windows Form Designer generated
code" section? This was always there in 2003 but only certain programs have
it in 2005, or else I can't figure out how to display it. This is especially
useful in seeing how to build controls using code. More specifically, I'm
trying to build a "Menu Strip" using code and I can't seem to find any sample
code to do this. Can anyone direct me to a site that has detailed sample
code to accomplish this?

Thanks,

Mike S
 
A

Armin Zingler

MikeS said:
Why does my code window NOT display the "Windows Form Designer
generated code" section?

Because "they" probably thought it's cleaner to separate your own code from
the designer generated code.
This was always there in 2003 but only
certain programs have it in 2005, or else I can't figure out how to
display it. This is especially useful in seeing how to build
controls using code. More specifically, I'm trying to build a "Menu
Strip" using code and I can't seem to find any sample code to do
this. Can anyone direct me to a site that has detailed sample code
to accomplish this?

Display all files in the project explorer (press the icon at the top) and
open the revealed FormX.Designer.vb file.


Armin
 
T

Tom Shelton

Why does my code window NOT display the "Windows Form Designer generated
code" section?

Because, the desinger now generates the forms as partial classes. The
designer generated code, is no placed in a new file called
FormName.designer.vb.

This is a good thing, IMHO, since it separates user code from desginer
code.
This was always there in 2003 but only certain programs have
it in 2005, or else I can't figure out how to display it.

On the solution explorer, there is a button that if you look at the
tooltip says "Display All Files", click it.
 
J

Jack Jackson

Why does my code window NOT display the "Windows Form Designer generated
code" section? This was always there in 2003 but only certain programs have
it in 2005, or else I can't figure out how to display it. This is especially
useful in seeing how to build controls using code. More specifically, I'm
trying to build a "Menu Strip" using code and I can't seem to find any sample
code to do this. Can anyone direct me to a site that has detailed sample
code to accomplish this?

It's in the xxx.Designer.vb file. By default those files are not
shown in the Solution Explorer - press the Show All Files button to
see them.
 
G

Guest

Thanks guys. That was pretty simple. Now can you tell me where I might find
some sample code to build a Menu Strip with code?

Thanks again.

Mike
 

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