The Form Class Hierarchy

Figure 5.4 shows how the Form class (and the UserControl class) is inherited from the generic Control class.

Figure 5.4. An inheritance tree for the Form and UserControl classes.

The Control class inherits from the Component class in the System.ComponentModel namespace. This is why you see references to components in Form1's constructor.

The Control Class

The Control class represents components that have a visual aspect, such as buttons, check boxes, and treeviews. Because the Control class is the first level in the class hierarchy that specializes in visible structures, it is also the first class to start exposing visual ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library 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.