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 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.