Version

Show(PopupInfo) Method

Used to display the popup window with the specified position information.
Syntax
'Declaration
 
Public Overloads Overridable Sub Show( _
   ByVal info As Infragistics.Win.PopupInfo _
) 
public virtual void Show( 
   Infragistics.Win.PopupInfo info
)

Parameters

info
Provides information about the location of the popup
Remarks

The Show method is used to display the popup window. The info is used to provide position and owner information for the popup window.

Example
The following example demonstrates how to display an UltraPopupControlContainer programatically.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.Misc

Private Sub frmUltraDropDownButton_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseUp
    'when the mouse button is pressed...
    If e.Button = MouseButtons.Right Then

        'if the popup is not displayed...
        If Not Me.ultraPopupControlContainer1.IsDisplayed Then
            'show the popup - be careful if you pass a Point
            'since that point should be in screen coordinates
            Dim control As Control = CType(sender, Control)
            Dim pt As Point = New Point(e.X, e.Y)
            pt = control.PointToScreen(pt)

            Me.ultraPopupControlContainer1.Show(pt)
        End If
    End If
End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.Misc;

private void frmUltraDropDownButton_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
	//when the mouse button is pressed...
	if (e.Button == MouseButtons.Right)
	{
		//if the popup is not displayed...
		if (!this.ultraPopupControlContainer1.IsDisplayed)
		{
			// show the popup - be careful if you pass a Point
			// since that point should be in screen coordinates
			Control control = sender as Control;
			Point pt = new Point(e.X, e.Y);
			pt = control.PointToScreen(pt);

			this.ultraPopupControlContainer1.Show(pt);
		}
	}
}
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