Skip to content

Button Class

Represents a Windows Button control.

Usage

A Button is used to produce an action by a user.

A Button can be clicked using the mouse, Enter key, or Spacebar if the button has focus.

Notable Class Members

Inherits members from the Control Class.

Properties

  • Enabled - Gets or sets a value indicating whether the Button can respond to user interaction.
  • Text - Gets or sets the text associated with this Button.

Events

  • Click - Occurs when a Button is clicked.

Further Reading