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. What does the form's StartUpPosition value do?

  2. Why do label captions often show hotkey letter combinations?

  3. When is the best time to enter ToolTipText properties and why?

  4. What is a control array?

  5. Why does Visual Basic like to offer a control array when you paste a control on a form that has the source of the paste already on the form?

  6. Why might you want to lock a Text Box control?

  7. What is the proper way to terminate an application?

  8. What happens when you attempt to divide by zero?

  9. True or false: The following two statements are identical:

    lblTitle = "The Sound of Multimedia"
    
    lblTitle.Caption = "The Sound of Multimedia"
    
  10. What is the difference between a function procedure and a subroutine procedure?

Exercises

  1. Change this lesson's application's form properties so the user cannot resize the form. Search through the form properties until you find the property that will do this.
  2. Add input box routines to the application so that the user sees the error message in the input box and can enter the replacement values in the input box. The code then places the input box's value into the form. Once the form gets a replacement value, check the controls again to make sure that the replacement value is correct. You might want to add a Do...While loop around the input box routines so that the user keeps seeing the input box warnings until the user enters a value greater than zero.

Share ThisShare This

Informit Network