Using the Form Class

The Form class in System.Windows.Forms is the control that you will use to design graphical user interfaces. The Form class is a bona fide class in Visual Basic .NET, rather than something slightly different, as it was in VB6.

Note

In Visual Basic 6, it's the Attribute VB_PredeclaredId = True statement that you don't see in a VB6 form that instructs the VB6 compiler to create an autoinstance of a VB6 form. In fact, if you open a VB6 .CLS file with a text editor and modify this Attribute, VB6 will autocreate your classes too.

The project settings stored in the .vbproj file—StartupObject = "ShapedForm. Form1"—define the object or class that will be autocreated in Visual Basic .NET. You will have to write a slightly modified ...

Get Visual Basic® .NET Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.