9.2. Buttons
The ButtonBase class is the equivalent of the BUTTON class used in Windows API to create push buttons, check boxes, radio buttons, and group boxes. The ButtonBase class in the .NET framework is an abstract class – only derived classes, such as Button, CheckBox, and RadioButton can be instantiated. This is shown in Figure 9.6.
Figure 9.6. The different types of classes linked to create button controls
As a base class for the three types of button, the ButtonBase class offers very basic functionality. Let’s look at some of the properties and methods of this class.
To display an image on a control, we can use the Image property (of ...
Get A Programmer's Guide to .NET 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.