Version

ShowPopup(String,Point,Control,Rectangle,DropDownPosition,Control,Boolean,Boolean) Method

Displays the PopupToolBase as a context popup at the specified point (supplied in screen coordinates) while ensuring that the popup does not obscure the area defined by the specified rect.
Syntax
'Declaration
 
Public Overloads Sub ShowPopup( _
   ByVal popupToolKey As String, _
   ByVal screenPoint As Point, _
   ByVal sourceControl As Control, _
   ByVal exclusionRect As Rectangle, _
   ByVal dropdownPosition As Infragistics.Win.DropDownPosition, _
   ByVal owner As Control, _
   ByVal alignRight As Boolean, _
   ByVal showMiniToolbar As Boolean _
) 
public void ShowPopup( 
   string popupToolKey,
   Point screenPoint,
   Control sourceControl,
   Rectangle exclusionRect,
   Infragistics.Win.DropDownPosition dropdownPosition,
   Control owner,
   bool alignRight,
   bool showMiniToolbar
)

Parameters

popupToolKey
The key of the context popup to display.
screenPoint
The point at which to display the context popup, expressed in screen coordinates.
sourceControl
The source control when the popup is shown as a context menu.
exclusionRect
The rectangle (in screen coordinates) that must remain visible and not be obscured by the popup menu.
dropdownPosition
Determines where to place the popup menu with respect to the exclusion rectangle.
owner
The owning control
alignRight
If true will attempt to place the dropdown's upper right corner at the location point.
showMiniToolbar
If true, will show the MiniToolbar with the drop down if the MiniToolbar has tools.
Remarks

If the DockWithinContainer property is not set then the 'owner' parameter must be specified.

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