ShowContextMenu Method
See Also 
SourceCode.Framework.Design Namespace > MenuCommandServiceBase Class : ShowContextMenu Method



x
The x-coordinate at which to display the menu, in screen coordinates.
y
The y-coordinate at which to display the menu, in screen coordinates.

Glossary Item Box

Shows the specified shortcut menu at the specified location.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub ShowContextMenu( _
   ByVal menuID As CommandID, _
   ByVal x As Integer, _
   ByVal y As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As MenuCommandServiceBase
Dim menuID As CommandID
Dim x As Integer
Dim y As Integer
 
instance.ShowContextMenu(menuID, x, y)
C# 
public virtual void ShowContextMenu( 
   CommandID menuID,
   int x,
   int y
)
C++/CLI 
public:
virtual void ShowContextMenu( 
   CommandID^ menuID,
   int x,
   int y
) 

Parameters

menuID
The System.ComponentModel.Design.CommandID for the shortcut menu to show.
x
The x-coordinate at which to display the menu, in screen coordinates.
y
The y-coordinate at which to display the menu, in screen coordinates.

Requirements

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

See Also