Buttons
Basically designed to be clicked
Can be depressed and can pop up after being depressed
- Start new project
- Add a button control
- Click the button, stretch it by dragging its handles
- Click the lightning bolt on the properties window
- Double-click area to right of MouseEnter

Button1.Text = "the mouse of over me"
- Double-click on the mouseLeave event
- Add this code:
Button1.Text = "The mouse left"
- Run it
- Move your mouse over it and then back off
Each control has a default event
The button’s default event is the click event
- Double click click event
- Add this code:
Button1.Text = "Button Clicked"
PerformClick() method
Clicks the button programmatically
- Add another button and double click it
- Add this code
Button1.PerformClick()
- Run it and test it by clicking the second button