Spread Windows Forms 12.0 Product Documentation
PopupWindowHelper Class Members
Properties  Methods  Events


FarPoint.Win Assembly > FarPoint.Win Namespace : PopupWindowHelper Class

The following tables list the members exposed by PopupWindowHelper.

Public Constructors
 NameDescription
Public ConstructorDefault constructor.  
Top
Public Properties
 NameDescription
Public PropertyGets the handle for this window. (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 MethodCreates a window and its handle with the specified creation parameters. (Inherited from System.Windows.Forms.NativeWindow)
Public MethodCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
Public MethodInvokes the default window procedure associated with this window. (Inherited from System.Windows.Forms.NativeWindow)
Public MethodDestroys the window and its handle. (Inherited from System.Windows.Forms.NativeWindow)
Public MethodRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodReleases the handle associated with this window. (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 MethodReleases the resources associated with this window. (Inherited from System.Windows.Forms.NativeWindow)
Protected MethodOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Protected MethodSpecifies a notification method that is called when the handle for a window is changed. (Inherited from System.Windows.Forms.NativeWindow)
Protected MethodRaises the PopupCancel event.  
Protected MethodRaises the PopupClosed event.  
Protected MethodWhen overridden in a derived class, manages an unhandled thread exception. (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

Reference

PopupWindowHelper Class
FarPoint.Win Namespace