Creating Menus and Menu Items

Add controls to a Windows form.

  • Create menus and menu items.

Windows applications use menus to provide organized collections of commands that can be performed by the user. Menus can inform the user of an application's capabilities as well as its limitations. If a program has properly organized menus, users can easily find common commands as well as less familiar features. Users can also learn shortcut keys from a well-designed menu structure.

Because menus have so many benefits to the user, you should be well versed in their creation and the function they can provide. The following sections discuss the menu-related classes MainMenu, MenuItem, and ContextMenu. They also discuss two controls, the StatusBar and ToolBar ...

Get MCAD/MCSD.NET Training Guide (Exam 70-316): Developing and Implementing Windows®-Based Applications with Microsoft® Visual C#™ .NET and Microsoft® Visual Studio® .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.