Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Loading
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Table of Contents

Chapter 3: User Interface Design: Visual Basic Controls and Events
Last change: February 13 2016 18:47:26.
<<PreviousNext>>

Summary of Events

The following table summarizes the events discussed in this section:

Event Applicable Controls Trigger Uses
Form Load Form When the form is loaded into memory To initialize values of variables and properties
Click Button and many other controls When the user clicks the control To initiate an action
Double-Click List box, combo box When the user double-clicks the control To initiate an action
CheckedChanged Radio button, check box When the value of the control’s Checked property has changed To handle the situation in response to the selection
SelectedIndexChanged List box, combo box When the value of the SelectedIndex property is changed To handle the situation in response to the selection
KeyPress Text box, mask edit box, form When the user presses a key To carry out certain activities or verify the validity of the key
Enter Text box, masked text box When the control receives focus To perform preparatory activities such as highlighting the text
Leave Text box, masked text box When the focus is leaving the control To perform finishing touch activities such as converting to uppercase letters

Notice that the Applicable Controls column lists the controls that are most commonly seen with the event, rather than all the controls that recognize the event. Some events, such as Enter and Leave, are recognized by almost all controls; however, these events are usually used in conjunction with only a few controls.

Last change: February 13 2016 18:47:29.
<<PreviousNext>>