[]
        
(Showing Draft Content)

FarPoint.Win.PopupWindowHelper.ShowPopup

ShowPopup Method

ShowPopup(Control, Form, Point)

Shows the specified Form as a popup window, keeping the Owner's title bar active and preparing to cancel the popup should the user click anywhere outside the popup window.

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 Load event as this will improve the visual appearance.

Declaration
public void ShowPopup(Control owner, Form popup, Point location)
Public Sub ShowPopup(owner As Control, popup As Form, location As Point)
Parameters
Type Name Description
Control owner

Main form which owns the popup

Form popup

Window to show as a popup

Point location

Location relative to the screen to show the popup at.