Chapter 11. Labels and Buttons

Controls are Windows Forms widgets: listboxes, buttons, checkboxes, labels, text boxes, and so forth, that provide a visual user interface for a Windows application.

Previous chapters covered many of the features common to all Windows Forms controls—all members of the System.Windows.Forms.Control class and all objects derived from that class. These features provide all controls with a basic level of functionality, including size, location, appearance, and mouse and keyboard support.

This chapter will describe two of the most basic classes of controls provided as part of the .NET Framework: Label and Button. Virtually all applications use both types of controls. Although they look simple and one dimensional, both classes offer surprising depth and versatility.

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.