Button Control
TOC
Collapse the table of content
Expand the table of content

Button Control (Windows Forms)

 

The Windows Forms Button control allows the user to click it to perform an action. The Button control can display both text and images. When the button is clicked, it looks as if it is being pushed in and released.

In This Section

Button Control Overview (Windows Forms)

Explains what this control is and its key features and properties.

How to: Respond to Windows Forms Button Clicks 

Explains the most basic use of a button on a Windows Form.

How to: Designate a Windows Forms Button as the Accept Button

Explains how to designate a Button control to be the accept button, also known as the default button.

How to: Designate a Windows Forms Button as the Cancel Button

Explains how to designate a Button control to be the cancel button, which is clicked whenever the user presses the ESC key.

Ways to Select a Windows Forms Button Control

Lists methods of selecting a button.

Also see How to: Designate a Windows Forms Button as the Accept Button Using the Designer and How to: Designate a Windows Forms Button as the Cancel Button Using the Designer.

Reference

Button class

Describes this class and has links to all its members.

Related Sections

Controls to Use on Windows Forms

Provides a complete list of Windows Forms controls, with links to information on their use.

Also see 63ad8645-6842-45e8-b215-73f778e29a55 and 9e118fad-3bf4-4f70-a3de-a0cda2b0229d.

Show:
© 2016 Microsoft