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 is the fastest way to place a control on the form?
  2. What are a control's sizing handles for?
  3. How can you select multiple controls?
  4. True or false: Some properties change automatically as you move and resize controls.
  5. Which form property sets the title that appears in the form's title bar?
  6. What is the difference between an object and a control?
  7. When is the best time to add a ToolTip to a control?
  8. Why do some controls display an ellipsis when you click certain property values?

Exercises

  1. Create another application from scratch. Add two command buttons and one label between them. Make the label's Caption property blank when you place the label on the form. When the user clicks the first command button, a caption should appear on the label that reads Clicked!. You'll need to place the following Visual Basic statement inside one of the application's event procedures to do this:

    lblClick.Caption = "Clicked!"
    

    Save the project and form module so you can modify the application later if you want.

  2. Load the project you created in the previous exercise and add ToolTips to the two command buttons and to the label button. Run the application and test the ToolTips to see if they work.

Share ThisShare This

Informit Network