Version

Show(Control,Point) Method

Displays the shortcut menu at the specified position.
Syntax
'Declaration
 
Public Overloads Sub Show( _
   ByVal control As Control, _
   ByVal position As Point _
) 
public void Show( 
   Control control,
   Point position
)

Parameters

control
A System.Windows.Forms.Control that specifies the control with which this shortcut menu is associated.
position
A System.Drawing.Point 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.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe control parameter is null.
System.ArgumentExceptionThe handle of the control does not exist or the control is not visible.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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