473,395 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Windows Form Designer

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
Oct 17 '07 #1
4 2402
On Oct 17, 8:42 am, MikeS <Mi...@discussions.microsoft.comwrote:
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.

--
Tom Shelton

Oct 17 '07 #2
On Wed, 17 Oct 2007 07:42:09 -0700, MikeS
<Mi***@discussions.microsoft.comwrote:
>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.
Oct 17 '07 #3
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
"Tom Shelton" wrote:
On Oct 17, 8:42 am, MikeS <Mi...@discussions.microsoft.comwrote:
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.

--
Tom Shelton

Oct 17 '07 #4
"MikeS" <Mi***@discussions.microsoft.comschrieb
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

Oct 17 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: gregory_may | last post by:
This code seems to "work" but I get the following errors: An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll then this one: An unhandled...
6
by: Ayende Rahien | last post by:
Excetremely annoying problem, I've an application with a long startup time. So I created another form with my logo in it to as a splash screen. The splash screen is run from another thread and is...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
8
by: Alison | last post by:
Hi, Al I am trying to design a user interface which provides both menus and toolbars for some users to click on whatever they want to do, at the same time, I would like to have a console window...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
13
by: cj | last post by:
In a project done in 2003 about a year ago I was told to add the SocketWrench code below into the Windows Form Designer generated code area as shown below. #Region " Windows Form Designer...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.