Button Control
Button control is used to perform some action. Action may be Save, Print, Add New, Modify, Delete, Exit, etc. Whenever the user clicks a button, the Click event handler is invoked.
You place code in the Click event handler to perform any action you desire.
The text displayed on the button is contained in the Text property. The Button control can also display images using the Image and ImageList properties .
Property :
(1) Text : It is the text that is displayed on the button control. The Text property can contain an access key, which allows a user to “click” the control by pressing the ALT key with the access key.

If youplaceampersand (&) before any letter, so underscore letter will appear, then user can press alter key with that letter to fire the Click event.
For example, when you set the E&xitin Text property of button control, it will be displayed as Exit. So by pressing the ALT key& x click event will be fired.
- Name
- BackColor
- ForeColor
- AuotSize
- Visible
- Enabled
- Left
- Right
- Top
- Bottom
- Margin
- Image
- ImageAlign
- TextAlign
- Size
- Location
- Cursor
- TabIndex
- TabStop
- Font
All above properties are discussed in previouscontrols.
Method :
All above methods are discussed in label control.
PerformClick : Generates a Click event for a button. This method raises the click event of the button control.
This method comes in handy when the code in the click event has to be executed even when the user has not clicked the button.
Event :
- Click
- DoubleClick
- MouseDown
- MouseUp
- MouseMove
- MouseWheel
- MouseEnter
- MouseLeave
- MouseClick
- MouseDoubleClick
- MouseHover
- TextChanged
- KeyPress
- KeyDown
- KeyUp
- Enter
- Leave
- GotFocus
- LostFocus
- Validating
- Validated