Class PopupWindow
Represents a popup form.
Inheritance
Inherited Members
Namespace: FastReport.Controls
Assembly: FastReport.dll
Syntax
public class PopupWindow : BaseForm, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Remarks
Use this form if you want to show some controls in non-modal borderless form that behaves like other standard popup controls such as context menu. This form does not move a focus from the parent form.
Constructors
PopupWindow(Form)
Initializes a new instance of the PopupWindow class with default settings.
Declaration
public PopupWindow(Form ownerForm)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Form | ownerForm | The main form that owns this popup form. |
Methods
PopupCancel(Object, PopupCancelEventArgs)
Handler which allows to prevent canceling of popup window
Declaration
protected virtual void PopupCancel(object sender, PopupCancelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | Popup helper |
PopupCancelEventArgs | e | Event arguments |
Show(Point)
Shows the form.
Declaration
public void Show(Point pt)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | pt | The absolute screen location. |
Show(Control, Point)
Shows the form.
Declaration
public void Show(Control ctl, Point pt)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | ctl | The control which location is used as a reference for pt parameter. |
System.Drawing.Point | pt | The location relative to the ctl control. |
Show(Control, Int32, Int32)
Shows the form.
Declaration
public void Show(Control ctl, int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | ctl | The control which location is used as a reference for x, y parameters. |
System.Int32 | x | The x position relative to the ctl control. |
System.Int32 | y | The y position relative to the ctl control. |