Spread Windows Forms 8.0 Product Documentation
PopupWindowHelper Class Methods


For a list of all members of this type, see PopupWindowHelper members.

Public Methods
 NameDescription
Public MethodAssignHandle (Inherited from System.Windows.Forms.NativeWindow)
Public MethodClosePopupCalled when the popup is being hidden.  
Public MethodCreateHandleCreates a window and its handle with the specified creation parameters. (Inherited from System.Windows.Forms.NativeWindow)
Public MethodCreateObjRefCreates 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 MethodDefWndProcInvokes the default window procedure associated with this window. (Inherited from System.Windows.Forms.NativeWindow)
Public MethodDestroyHandleDestroys the window and its handle. (Inherited from System.Windows.Forms.NativeWindow)
Public MethodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodReleaseHandleReleases the handle associated with this window. (Inherited from System.Windows.Forms.NativeWindow)
Public MethodShowPopupShows 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 MethodFinalizeReleases the resources associated with this window. (Inherited from System.Windows.Forms.NativeWindow)
Protected MethodMemberwiseCloneOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Protected MethodOnHandleChangeSpecifies a notification method that is called when the handle for a window is changed. (Inherited from System.Windows.Forms.NativeWindow)
Protected MethodOnPopupCancelRaises the PopupCancel event.  
Protected MethodOnPopupClosedRaises the PopupClosed event.  
Protected MethodOnThreadExceptionWhen overridden in a derived class, manages an unhandled thread exception. (Inherited from System.Windows.Forms.NativeWindow)
Protected MethodWndProcOverridden. 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
See Also

Reference

PopupWindowHelper Class
FarPoint.Win Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.