Name | Description | |
---|---|---|
PopupWindowHelper Constructor | Default constructor. |
The following tables list the members exposed by PopupWindowHelper.
Name | Description | |
---|---|---|
PopupWindowHelper Constructor | Default constructor. |
Name | Description | |
---|---|---|
Handle | (Inherited from System.Windows.Forms.NativeWindow) |
Name | Description | |
---|---|---|
AssignHandle | (Inherited from System.Windows.Forms.NativeWindow) | |
ClosePopup | Called when the popup is being hidden. | |
CreateHandle | (Inherited from System.Windows.Forms.NativeWindow) | |
CreateObjRef | (Inherited from System.MarshalByRefObject) | |
DefWndProc | (Inherited from System.Windows.Forms.NativeWindow) | |
DestroyHandle | (Inherited from System.Windows.Forms.NativeWindow) | |
GetLifetimeService | (Inherited from System.MarshalByRefObject) | |
InitializeLifetimeService | (Inherited from System.MarshalByRefObject) | |
ReleaseHandle | (Inherited from System.Windows.Forms.NativeWindow) | |
ShowPopup | 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 System.Windows.Forms.Form.Load event as this will improve the visual appearance. |
Name | Description | |
---|---|---|
Finalize | (Inherited from System.Windows.Forms.NativeWindow) | |
MemberwiseClone | Overloaded. (Inherited from System.MarshalByRefObject) | |
OnHandleChange | (Inherited from System.Windows.Forms.NativeWindow) | |
OnPopupCancel | Raises the PopupCancel event. | |
OnPopupClosed | Raises the PopupClosed event. | |
OnThreadException | (Inherited from System.Windows.Forms.NativeWindow) | |
WndProc | Overridden. 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. |
Name | Description | |
---|---|---|
PopupCancel | Raised 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. | |
PopupClosed | Raised when the popup form is closed. |