FarPoint.Win Assembly > FarPoint.Win Namespace > PopupWindowHelper Class : ShowPopup Method |
Typical code to use this message is as follows:
frmPopup popup = new frmPopup(); Point location = this.PointToScreen(new Point(button1.Left, button1.Bottom)); popupHelper.ShowPopup(this, popup, location);
Put as much initialization code as possible into the popup form's constructor, rather than the System.Windows.Forms.Form.Load event as this will improve the visual appearance.
'Declaration Public Sub ShowPopup( _ ByVal owner As Control, _ ByVal popup As Form, _ ByVal location As Point _ )
'Usage Dim instance As PopupWindowHelper Dim owner As Control Dim popup As Form Dim location As Point instance.ShowPopup(owner, popup, location)
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10