Chapter 19. The System.Windows.Forms Namespace

The System.Windows.Forms namespace contains the classes that you use to build rich client applications—the windows, buttons, drop-down lists, and labels that make up the UIs with which you are familiar. At the center of this universe is the Control class. Any window that appears on the screen, from dialogs to checkboxes, is derived from Control, and this class provides almost all the basic behavior a window needs. All the common windows controls provide relatively minor modifications or extensions to Control to add their own behaviors (painting, click handling, etc.), so a good understanding of the Control class goes a long, long way.

Figures Figure 19-1 and Figure 19-2 show many of the types in this namespace. Figure 19-3 shows many of this namespace’s event arguments, and Figure 19-4 shows the delegates. The components are shown in Figure 19-5 and the controls are shown in Figures Figure 19-6 and Figure 19-7.

Many types from the System.Windows.Forms namespace

Figure 19-1. Many types from the System.Windows.Forms namespace

More types from the System.Windows.Forms namespace

Figure 19-2. More types from the System.Windows.Forms namespace

Event arguments in the System.Windows.Forms namespace

Figure 19-3. Event arguments in the System.Windows.Forms namespace

Figure 19-4. Delegates from System.Windows.Forms ...

Get .NET Windows Forms in a Nutshell 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.