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 .
(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.
All above properties are discussed in previouscontrols.
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.