This documentation is archived and is not being maintained.

ButtonBase Class

Implements the basic functionality common to button controls.

For a list of all members of this type, see ButtonBase Members.


[Visual Basic]
MustInherit Public Class ButtonBase
   Inherits Control
public abstract class ButtonBase : Control
public __gc __abstract class ButtonBase : public Control
public abstract class ButtonBase extends Control

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


You do not typically inherit from ButtonBase. To create your own button class, inherit from the Button, CheckBox, or RadioButton class.

To have the derived button control display an image, set the Image property or the ImageList and ImageIndex properties. The image can be aligned on the button control by setting the ImageAlign property. Likewise, to align the Text displayed on the button control, set the TextAlign property.

The FlatStyle property determines the style and appearance of the control. If the FlatStyle property is set to FlatStyle.System, the user's operating system determines the appearance of the control.


Namespace: System.Windows.Forms

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System.Windows.Forms (in System.Windows.Forms.dll)

See Also

ButtonBase Members | System.Windows.Forms Namespace | Control | Button | CheckBox | RadioButton