GetContextMenuMouseEventArgs Method
Calculate the event args for raising the context menu show event for a control.
Namespace: Microsoft.VisualStudio.Data.Tools.Package.Project.PropertyPages
Assembly: Microsoft.VisualStudio.Data.Tools.Package (in Microsoft.VisualStudio.Data.Tools.Package.dll)
Syntax
'Declaration
Public Shared Function GetContextMenuMouseEventArgs ( _
Control As Control, _
ByRef m As Message _
) As MouseEventArgs
'Usage
Dim Control As Control
Dim m As Message
Dim returnValue As MouseEventArgs
returnValue = DesignerDataGridView.GetContextMenuMouseEventArgs(Control, _
m)
public static MouseEventArgs GetContextMenuMouseEventArgs(
Control Control,
ref Message m
)
public:
static MouseEventArgs^ GetContextMenuMouseEventArgs(
Control^ Control,
Message% m
)
static member GetContextMenuMouseEventArgs :
Control:Control *
m:Message byref -> MouseEventArgs
public static function GetContextMenuMouseEventArgs(
Control : Control,
m : Message
) : MouseEventArgs
Parameters
- Control
Type: System.Windows.Forms..::..Control
- m
Type: System.Windows.Forms..::..Message%
Window's message.
Return Value
Type: System.Windows.Forms..::..MouseEventArgs
The context event args to use for raising the event.
See Also
Reference
Microsoft.VisualStudio.Data.Tools.Package.Project.PropertyPages Namespace