* Merge winforms framework content to working branch (#14) * Breadcrumb / TOC / Move net5 to net folder (#15) * change path from net5 to net * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Add .net 5 winforms placeholder article (#16) * added some metadata and adjusted net5 placeholder * corrections * corrections * corrections * Test1 * Swapping landing page vs concept * fix links * Fix links * Fix desc
2.2 KiB
title, ms.date, f1_keywords, helpviewer_keywords, ms.assetid
| title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||
|---|---|---|---|---|---|---|---|---|
| ContextMenuStrip Control Overview | 03/30/2017 |
|
|
9787cdb3-88f1-4198-972f-eefd9524ce39 |
ContextMenuStrip Control Overview
Note
The xref:System.Windows.Forms.ContextMenuStrip control replaces and adds functionality to the xref:System.Windows.Forms.ContextMenu control; however, the xref:System.Windows.Forms.ContextMenu control is retained for backward compatibility and future use if you choose.
Shortcut menus, also called context menus, appear at the mouse position when the user clicks the right mouse button. Shortcut menus provide options for the client area or the control at the mouse pointer location.
The xref:System.Windows.Forms.ContextMenuStrip control is designed to work seamlessly with the new xref:System.Windows.Forms.ToolStrip and related controls, but you can associate a xref:System.Windows.Forms.ContextMenuStrip with other controls just as easily.
The following table shows the important xref:System.Windows.Forms.ContextMenuStrip companion classes.
| Class | Description |
|---|---|
| xref:System.Windows.Forms.ToolStripMenuItem | Represents a selectable option displayed on a xref:System.Windows.Forms.MenuStrip or xref:System.Windows.Forms.ContextMenuStrip. |
| xref:System.Windows.Forms.ToolStripDropDown | Represents a control that enables the user to select a single item from a list that is displayed when the user clicks a xref:System.Windows.Forms.ToolStripDropDownButton or a higher-level menu item. |
| xref:System.Windows.Forms.ToolStripDropDownItem | Provides basic functionality for controls derived from xref:System.Windows.Forms.ToolStripItem that display drop-down items when clicked. |