While your project is running, the user can do many things, such as move mouse around; click on either button; move, resize or close your form’s window; or jump to another application. Each action by the user causes an event to occur in your Visual Basic Project.
Some events you care about, and some events you don’t care about. If you write Basic code for particular event, then Visual Basic will respond to the event automatically execute your procedure. VB ignores events for which no procedures are written.
Visual Basic automatically names your event procedures. The name consist of the object name, an underscore(_), and the name of event. For example: the click event of command button called cmdPush will be cmdPush_Click().