December 2003
Intermediate to advanced
504 pages
10h 42m
English
An essential component of the Windows user interface is the use of menus. Menus that are typically located in the top of the application window allow a context-sensitive user interaction mechanism for a broader functionality. Menus are typically hierarchical, and the menu hierarchies provide the user a large number of possible actions in a very compact user interface. Adding a menu to Windows Forms is as simple as setting the Menu property to a MainMenu object (Listing 7.7, Figure 7.11). The MainMenu instance itself can contain a hierarchy of MenuItem instances. MenuItem can have a set of event handlers assigned to provide the required user interaction. Also note that menu items that contain the ampersand (&) character also have an ...