21.3. Windows Forms, Component Controls, and Their Associated .NET Classes

As shown in Table 21.1, four namespaces contain all the GUI-related classes.

For our purposes, this chapter explores only those classes in the System.Windows.Forms namespace. Classes in this namespace can be categorized as controls, components, and common dialog boxes. Controls are GUI widgets that display information to the user. They handle user input through the keyboard and pointing devices. They also handle message routing and security. Controls have associated properties and events and are represented by classes that inherit from the System.Windows.Form.Control class.

Table 21.2 shows a subset of the controls in the Visual Studio .NET default toolbox, along with ...

Get .NET for Java Developers: Migrating to C# 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.