Wimark.Controls Class Library  

ContextMenu.Show(Control, Rectangle) Method

Displays the shortcut menu at the specified position.

[Visual Basic]
Overloads Public Sub Show( _
   ByVal control As Control, _
   ByVal displayRect As Rectangle _
)
 
[C#]
public void Show( 
   Control control, 
   Rectangle displayRect 
);
[C++]
public: void Show( 
   Control* control, 
   Rectangle displayRect 
);

Parameters

control
A Control object that specifies the control with which this context menu is associated.
pos
A Rectangle object 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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

See Also

ContextMenu Class | ContextMenu Members | Wimark.Controls Namespace