The ContextMenuStrip is converted to an ordinary ContextMenu. This makes it
possible to merge your ContextMenuStrip with the Default ShellContextMenu provided
by the system.
The "Opening" and "Closing" events of the ContextMenuStrip will be raised if the
ContextMenu "Popup"/"Collapse" event occurs. For menu items only the "Click" event
is available. All other events are not available.
All ToolStripMenuItems are converted, and ToolStripSeparators are recognized.
The ShortCut Keys defined in a ToolStripMenuItem are not converted.
If you would like to have the ShortCut-Keys, leave this Property null, instead set
the ContextMenu property to your menu explicitly.
| C# | Visual Basic | Visual C++ |
public ContextMenuStrip ContextMenuStrip { get; set; }
Public Property ContextMenuStrip As ContextMenuStrip
public: property ContextMenuStrip^ ContextMenuStrip { ContextMenuStrip^ get (); void set (ContextMenuStrip^ value); }