Auto created codes for a control in 2005?

danyeungw

Well-known member
Joined
Aug 30, 2005
Messages
73
Programming Experience
10+
In VB.NET 2003, after a control is drop on the form, some codes are automatic generated. For example, Friend WithEvents Button1 as New Button.

Why don't I see these codes in 2005? Thanks.

DanYeung
 
Because for reasons MS have put these generated codes in a partial class in a separate file. To view it click the "Show all files" button in Solution Explorer, expand the filetree by clicking the '+' at the Form1 where you will see Form1.Designer.vb, which is where it's at now.
 
Back
Top