MenuCommandService.ShowContextMenu Method (CommandID, Int32, Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Shows the shortcut menu with the given command ID at the given location.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

public virtual void ShowContextMenu(
	CommandID menuID,
	int x,
	int y
)

Parameters

menuID
Type: System.ComponentModel.Design.CommandID

The shortcut menu to display.

x
Type: System.Int32

The x-coordinate of the shortcut menu's location.

y
Type: System.Int32

The y-coordinate of the shortcut menu's location.

The default implementation does nothing.

.NET Framework
Available since 2.0
Return to top
Show: