Chapter 7. Controls: The Base Class

A control is an object with a visual interface that appears on a form and that displays information to the user. Examples of controls include buttons, labels and listboxes. Controls are also used to gather input from the user, either from the keyboard or from a pointing device such as the mouse.

There are nearly forty different controls included with the .NET Framework (not to mention numerous other components and related objects), providing a wide range of functionality. You can also derive from most controls to create specialized versions of the standard controls, or you can combine controls and even create entirely new controls. The creation of custom controls is covered in Chapter 17.

Get Programming .NET Windows Applications 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.