Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / PopupWindowHelper Class
Properties Methods Events


In This Topic
    PopupWindowHelper Class Members
    In This Topic

    The following tables list the members exposed by PopupWindowHelper.

    Public Constructors
     NameDescription
    Public ConstructorDefault constructor.  
    Top
    Public Properties
     NameDescription
    Public Property (Inherited from System.Windows.Forms.NativeWindow)
    Top
    Public Methods
     NameDescription
    Public Method (Inherited from System.Windows.Forms.NativeWindow)
    Public MethodCalled when the popup is being hidden.  
    Public Method (Inherited from System.Windows.Forms.NativeWindow)
    Public Method (Inherited from System.MarshalByRefObject)
    Public Method (Inherited from System.Windows.Forms.NativeWindow)
    Public Method (Inherited from System.Windows.Forms.NativeWindow)
    Public Method (Inherited from System.MarshalByRefObject)
    Public Method (Inherited from System.MarshalByRefObject)
    Public Method (Inherited from System.Windows.Forms.NativeWindow)
    Public MethodShows 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 System.Windows.Forms.Form.Load event as this will improve the visual appearance.

     
    Top
    Protected Methods
     NameDescription
    Protected Method (Inherited from System.Windows.Forms.NativeWindow)
    Protected MethodOverloaded.  (Inherited from System.MarshalByRefObject)
    Protected Method (Inherited from System.Windows.Forms.NativeWindow)
    Protected MethodRaises the PopupCancel event.  
    Protected MethodRaises the PopupClosed event.  
    Protected Method (Inherited from System.Windows.Forms.NativeWindow)
    Protected MethodOverridden. Subclasses the owning form's existing Window Procedure to enables the title bar to remain active when a popup is show, and to detect if the user clicks onto another application whilst the popup is visible.  
    Top
    Public Events
     NameDescription
    Public EventRaised when the Popup Window is about to be cancelled. The PopupCancelEventArgs.Cancel property can be set to true to prevent the form from being cancelled.  
    Public EventRaised when the popup form is closed.  
    Top
    See Also