Button Control

Standard push button control.

Control
   Button

control Button implements

IDisposable

Constructors

Button
Button

Properties

ToolTip
CaptionSets or gets the text to be displayed on the button.
EnabledEnables or disables the button.
DestructiveActionIf set to true then in some contexts like system alert dialogs thee button will be painted differently to indicate it is destructive.
IsDefaultButtonIf set to true the button will act as default button on the window.
IsCancelButtonIf set to true then the Button will respond to cancelation with escape key.
Width (Inherited) Sets or gets width of the control.
Height (Inherited) Sets or gets height of the control.
Visible (Inherited) Visible state of the control.
Window (Inherited) Gets control’s owner window.
Left (Inherited) Sets or gets controls left location.
Top (Inherited) Sets or gets controls top location.

Methods

DisposeDisposes thee button.
OnGotFocus (Protected)
OnLostFocus (Protected)
OnPressed (Protected) Virtual method for inheriting the class to override the OnPressed which is fired before the Pressed event.
SetFocus (Inherited) Sets focus.

Events

GotFocus
LostFocus
PressedThis event is fired when the button has been pressed.