Sams Teach Yourself Visual Basic 6 in 24 Hours

Sams Teach Yourself Visual Basic 6 in 24 Hours

By Greg Perry

Q&A

  1. When do I double-click a toolbox control to place the control on the Form window and when do I drag the control onto the Form window?

    When you double-click a toolbox control, that control appears on the Form window immediately. The double-click requires less work from you to place the control on the form. After the control appears, however, your rest period ends because you have to move and size the control properly. By first selecting a control and dragging the control onto the form, you select, size, and move the control in one step.

  2. How do I know if a property value requires a value, a selection from a drop-down list box, or a dialog box selection?

    Just click the property. If nothing happens, type the new property value. If a drop-down list box arrow appears, click the arrow to see the selections in the list. If an ellipsis appear, click it to display the property's dialog box.

  3. Can I create an initial application with the VB Application Wizard and then add extra controls to the form?

    Certainly! That's the true reason for using the wizard. The wizard creates the shell, and then you add to and modify the shell to generate a final application that meets your specific needs. The only potential problem right now is that the wizard does generate a fairly comprehensive shell, especially if you add Internet and database access to the shell. Until you master more of the Visual Basic environment and language, you might find that locating the correct spots to change is more difficult than creating the application from scratch.

Share ThisShare This

Informit Network