Link to home
Start Free TrialLog in
Avatar of swtiley
swtiley

asked on

How do i display the windows form designer generated code

Hi,

I have just moved to Visual Studio 2005 (from VS 2003) and have "succesfully" opened an existing VB.NET project up. The forms display correctly (with all buttons, panels etc in the right place, but in the code I can not see the "Windows Form Designer Generated Code".

Has something gone wrong or is there a menu option, that I have not found, to display this region of code ?

This is very urgent, hence the 500 points.

Thanks
    Steve
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
swtiley,

At the top of this file the first couple of lines will look something like:

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Class1
    Inherits System.Windows.Forms.Form



Fernando
Avatar of swtiley
swtiley

ASKER

Hi Fernando,

thank you so much for the quick reply, and you can have the points, as I have found the file from your directions.

As a follow up question,  can you please tell me where I put my initialization code that was previously placed after the InitalizeComponent() ?

I believe in VS 2003. there was a comment line that said "Add any initialization afer the InitializeComponent() Call"

Cheers
    Steve
Hi swtiley,

I do not know foe sure but I think that was move to

My.Application.Startup event Look at this link for the information. tTodisplay this event handler goto Project on the main menu and select the project name Properties, last selection on the menu. Click on application on the left hand side and then click on View Applications Events button at the buttom of the page.

http://msdn2.microsoft.com/en-us/library/t4zch4d2.aspx

I hope that this helps.

Fernando
Avatar of swtiley

ASKER

Thanks Fernando
No problem, have a great day.