Sams Teach Yourself Visual Basic 6 in 24 Hours

Sams Teach Yourself Visual Basic 6 in 24 Hours

By Greg Perry

Workshop

The quiz questions and exercises are provided for your further understanding. See Appendix B for the answers.

Quiz

  1. How do windowed programs differ from programs running in text-based environments?
  2. What are events?
  3. Why are project component filenames not usually the same as their internal VB names?
  4. What is usually the last step a VB programmer takes before distributing an application to users?
  5. How does Visual Basic know which procedure to execute for a particular control's event?
  6. True or false: All controls support one and only one event.
  7. Which usually respond at design time: control property changes or event procedures?

Exercises

  1. Scroll through the interest rate project's form module again, looking at the various event procedures coded there. Determine which events are handled and which are not. An event procedure whose name begins with Form is an event procedure for the form itself. For example, you can respond to the user's mouse click over the form differently from a mouse click over a command button. Look for the events associated with the various command buttons on the form. Most often, a command button's event procedure is a Click() or DblClick() event procedure because most users either click or double-click command buttons and the click and double-click events are the ones you often need to respond to.
  2. Run the VB Application Wizard once again and, this time, test other features by including more objects (such as the Internet and database access if your disk drive contains a database file somewhere that you can locate when the wizard asks for the location) and selecting different options. Run the generated shell to see how differently the wizard's generated shell applications can act.

Share ThisShare This

Informit Network