|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
ContextMenu Component (Windows Forms)
Although MenuStrip and ContextMenuStrip replace and add functionality to theand controls of previous versions, MainMenu and ContextMenu are retained for both backward compatibility and future use if you choose.
The Windows Forms ContextMenu component is used to provide users with an easily accessible shortcut menu of frequently used commands that are associated with the selected object. The items in a shortcut menu are frequently a subset of the items from main menus that appear elsewhere in the application. Shortcut menus are usually available by right-clicking the mouse. On Windows Forms they are associated with other controls.
In This Section
Introduces the general concepts of the ContextMenu component, which allows users to create menus of frequently used commands associated with a selected object.
Explains how to add and remove shortcut menu items in Windows Forms.
Provides reference information on the ContextMenu class and its members.