.NET Samples - Windows Forms: Menus

This section includes the following sample:

Menus and Context Menus Sample

This sample demonstrates the creation and use of two types of menus in Windows Forms. The first is a Windows docked Main menu. The second is a right-click-enabled shortcut or pop-up menu.

Namespaces used in this sample:

System; System.Drawing; System.Windows.Forms; System.ComponentModel; System.Drawing.Text

Classes used in this sample:

Menu; Font; MenuItem; Form; Context; FontFamily; ContextMenu; File; EventHandler; Component; EventArgs; String; Label; MainMenu; Container; Thread; Message; Style; Icon; Application; MessageBox; Control