Microsoft Visual Basic 2005 Step by Step (Step by Step (Microsoft))

Chapter 4

Working with Menus, Toolbars, and Dialog Boxes

After completing this chapter, you will be able to:

In Chapter 3, “Working with Toolbox Controls,” you used several Microsoft Visual Studio 2005 controls to gather input from the user while he or she used a program. In this chapter, you'll learn how to present choices to the user by creating professional-looking menus, toolbars, and dialog boxes.

A menu is located on the menu bar and contains a list of related commands; a toolbar contains buttons and other tools that perform useful work in a program. Most menu and toolbar commands are executed immediately after they're clicked; for example, when the user clicks the Copy command on the Edit menu, information is copied to the Clipboard immediately. If a menu command is followed by an ellipsis (…), however, clicking the command displays a dialog box requesting more information before the command is carried out, and many toolbar buttons also display dialog boxes.

In this chapter, you'll learn how to use the MenuStrip and Toolstrip controls to add a professional look to your application's user interface. You'll also learn how to process menu, toolbar, and dialog box commands.

Upgrade Notes: Migrating Visual Basic 6 Code to Visual Basic 2005

If you're experienced with Microsoft Visual Basic 6, you'll notice some new features in Microsoft Visual Basic 2005, including the following:

Категории