This documentation is archived and is not being maintained.

Context Menus on Windows Forms

Visual Studio .NET 2003

Context menus are used within applications to give users access to frequently used commands via a right-click of the mouse. Often, context menus are assigned to controls, and provide particular commands that relate to that specific control.

In This Section

Adding Context Menus to Windows Forms
Gives directions for creating context menus and filling them with menu items.
Copying Menu Items from Menus to Context Menus
Gives directions for duplicating menu items from a menu to a context menu rather than creating two distinct menu structures.
Walkthrough: Creating Dynamic Context Menus on Windows Forms
Steps through a detailed example of creating a single context menu to serve two or more different controls.

Related Sections

ContextMenu Component (Windows Forms)
Suggests additional topics on the use of the ContextMenu component.
Menus in Windows Forms
Describes menus, menu items, and menu adornments.
What's New in Windows Forms and Controls
Describes the new features of Windows Forms and controls.
Show: