In this chapter, you will learn how to enhance your Visual Basic applications by adding professional looking menus and toolbars. You will learn how to create menus and populate them with menu items. You will also learn how to create submenus and execute program code when users click on menu items. This chapter will show you how to make your menu systems easier to work with by adding shortcuts and access keys. You will also learn how to enable and disable menu items as well as how to make them appear and disappear. In addition to all this, this chapter will show you how to create context menus for specific controls and how to provide easy access to your application's most commonly used commands using toolbars. Finally, you will get the chance to get some hands-on experience with menus through the completion of this chapter's game project, the Lottery Assistant game.
Specifically, you will learn how to:
Add a menu system to your application
Add shortcuts and access keys to menu items
Control when users can access menu items
Create context menus for individual controls
Add toolbars to your applications