Menus are one of the primary means of selecting a program's available options. They're similar to controls, but their function is specialized to invoking selected features of a program. Table 16.2 shows how to create and use Windows Forms Menus.

Table 16.2. Windows Forms Menu Controls
Menu ControlWhat It Does
ContextMenuMenus that are invoked by right-clicking a control.
MainMenuResides at the top of a form, below its title bar. It is the root menu of an entire menu hierarchy.
MenuItemSub-menus of a MainMenu and other MenuItems. They form the branches and nodes of the menu hierarchy. MenuItems are used to invoke some capability of a program.

As a part of any standard GUI implementations, Menus are very straightforward and easy to implement. ...

Get C# Unleashed now with the O’Reilly learning platform.

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