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 use controls and when do I use message and input boxes?

    You use Form controls when the user is to interact with a form and enter values the form module will process. The Toolbox controls are extremely useful for guiding the user through a list of choices. The message box is a program feature you can use to display one-time notes and warnings to your users. The input box is a great one-time dialog box you can display to ask the user questions when needed during the execution of the program.

  2. Why should I add remarks to my code?

    You'll modify your programs over time. The more you modify a program, the faster that modification (called maintenance) will go if you add ample remarks at the time you create the program. The remarks help you remember what a particular section of code is for. In addition to remarks, use named literals when available for options such as the message box button type because the named literal mnemonics are easier to remember than their numeric equivalents.

Share ThisShare This

Informit Network