Visual Basic (Declaration) | |
---|---|
Public Event OpeningContextMenuStrip As ContextMenuStripEventHandler |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ChartShape Dim handler As ContextMenuStripEventHandler AddHandler instance.OpeningContextMenuStrip, handler |
C# | |
---|---|
public event ContextMenuStripEventHandler OpeningContextMenuStrip |
The event handler receives an argument of type ContextMenuStripEventArgs containing data related to this event. The following ContextMenuStripEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel (Inherited from System.ComponentModel.CancelEventArgs) | |
Location | Gets the location. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2