O'Reilly logo

A Programmer's Guide to .NET by Alexei Fedorov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required