Method Show
Show(IControl, PointD?)
Displays the menu at the specified position.
public void Show(IControl control, PointD? position = null)
Parameters
control
IControlA Control that specifies the control with which this shortcut menu is associated.
position
PointD?A PointD that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
Remarks
Typically, a ContextMenu is displayed when the user clicks the right mouse button on a control or area of the form that the ContextMenu is bound to. You can use this method to manually display the shortcut menu at a specific location and bind it with a specific control. This method does not return until the menu is dismissed.