We have learned to add controls and change properties at design time.
In this lesson we will learn to write code.
In Visual Basic we will write code to execute when an event occurs:
Sometimes we will use the code to change properties of the form or the controls.
For instance we want to change the backcolor of the form when the user clicks BtnRed.
We may want to hide a control under certain circumstances.
The possibilities are endless! Let's get started!