Version

Show(Point) Method

Used to display the popup window at the specified location.
Syntax
'Declaration
 
Public Overloads Sub Show( _
   ByVal location As Point _
) 
public void Show( 
   Point location
)

Parameters

location
Location of the popup window in screen coordinates
Remarks

Displays the popup window using the specified Point as the preferred location.

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