System.Windows.Forms.Button Members

The members of System.Windows.Forms.Button are listed below.

See Also: Inherited members from System.Windows.Forms.ButtonBase

Public Constructors

Initializes a new instance of the System.Windows.Forms.Button class.

Public Properties

AutoSizeModeAutoSizeMode.

Gets or sets the mode by which the System.Windows.Forms.Button automatically resizes itself.

DialogResultDialogResult.

Gets or sets a value that is returned to the parent form when the button is clicked.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Gets a System.Windows.Forms.CreateParams on the base class when creating a window.

Public Methods

NotifyDefault(bool)

Notifies the System.Windows.Forms.Button whether it is the default button so that it can adjust its appearance accordingly.

PerformClick()

Generates a Control.Click event for a button.

override
ToString() : string
Documentation for this section has not yet been entered.

Protected Methods

override
OnClick(EventArgs)
Documentation for this section has not yet been entered.
override
OnFontChanged(EventArgs)

Raises the Control.FontChanged event.

override
OnMouseEnter(EventArgs)
Documentation for this section has not yet been entered.
override
OnMouseLeave(EventArgs)
Documentation for this section has not yet been entered.
override
OnMouseUp(MouseEventArgs)

Raises the ButtonBase.OnMouseUp(MouseEventArgs) event.

override
OnTextChanged(EventArgs)

Raises the Control.TextChanged event.

override
ProcessMnemonic(char) : bool

Processes a mnemonic character.

override
WndProc(ref Message)
Documentation for this section has not yet been entered.

Public Events

DoubleClick

Occurs when the user double-clicks the System.Windows.Forms.Button control.

MouseDoubleClick

Occurs when the user double-clicks the System.Windows.Forms.Button control with the mouse.