Sams Teach Yourself Visual Basic 6 in 24 Hours

Sams Teach Yourself Visual Basic 6 in 24 Hours

By Greg Perry

Q&A

  1. My application is simple, so do I now need a menu?

    Most applications require a menu, even if the only menu option is File | Exit. The simple applications you've seen throughout this tutorial have rarely had an Exit command button. To close them, you've had to click the application's window close button. You offer users a much more graceful exit if you give them the familiar File | Exit command.

  2. How many levels can I use for submenus?

    The Menu Editor supports numerous submenu levels, but menus become much less manageable if you go past two levels of submenus. In other words, a submenu such as File | Open | Text is about as deep as you should go. Your users will find the menu structure too cumbersome to traverse if you add additional submenus. A better option is to create a dialog box if a menu option requires several settings. The dialog box can be a second form with buttons and controls. You can display that form (by assigning True to its Visible property) when the user clicks the menu option for that dialog box.

Share ThisShare This

Informit Network