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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8