14.2. Menus

Menus provide groups of related commands for Windows applications. Although commands vary between applications, some—such as Open and Save —are common to many applications. Menus organize commands without “cluttering” the application’s user interface.

In Fig. 14.1, an expanded menu from Visual Basic 2005 Express lists various commands (called menu items), plus submenus (menus within a menu). Menu items are typically displayed down and indented to the right of the top-level menu, but they can be displayed to the left if there is not enough space to the right. The menu that contains a menu item is called the menu item’s parent menu. A menu item that contains a submenu is considered to be the parent of the submenu.

Figure 14.1. Menus, ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.