menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Popup - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Popup

    Modified PopupControlContainer that takes a child control and adds a sizable grip so that the window can be sized.

    Inheritance
    System.Object
    PopupBase
    Popup
    ComboBoxPopup
    Implements
    IPopupHost
    IPopupChild
    IKeyboardMessage
    IMouseMoveMessage
    IMouseHook
    IKeyboardHook
    IPopupParent
    IPopup
    Inherited Members
    PopupBase.ChildClosing(IPopupChild, PopupCloseAction)
    PopupBase.DefaultMargin
    PopupBase.DefaultSize
    PopupBase.DesignMode
    PopupBase.GetBorderOverlapCue(PopupRelativeAlignment)
    PopupBase.GetLocationForPopupAlignment(PopupRelativeAlignment, PopupRelativeAlignment)
    PopupBase.GetPreferredLocation(PopupRelativeAlignment, PopupRelativeAlignment)
    PopupBase.Hide()
    PopupBase.Hide(PopupCloseAction)
    PopupBase.IKeyboardHook.KeyboardHookProc(Int32, Int32)
    PopupBase.IKeyboardMessage.KeyboardMessage(Message)
    PopupBase.IMouseHook.MouseHook(Int32, Point, IntPtr, Int32, Int32)
    PopupBase.IMouseMoveMessage.MouseMoveMessage(Message)
    PopupBase.IPopup.GetPopupParentControl()
    PopupBase.IPopupParent.ChildClosing(IPopupChild, PopupCloseAction)
    PopupBase.IPopupParent.GetBorderOverlapCue(PopupRelativeAlignment)
    PopupBase.IPopupParent.GetLocationForPopupAlignment(PopupRelativeAlignment, PopupRelativeAlignment)
    PopupBase.IPopupParent.IsRightToLeft
    PopupBase.IsRelatedControl(Control, Boolean)
    PopupBase.IsShowing()
    PopupBase.OnBeforePopup(CancelEventArgs)
    PopupBase.OnCloseUp(PopupCloseAction)
    PopupBase.OnPopup(EventArgs)
    PopupBase.OnSizeChanged(EventArgs)
    PopupBase.ParentControl
    PopupBase.PopupHost
    PopupBase.PopupParent
    PopupBase.ProcessDialogKey(Keys)
    PopupBase.ProcessMouseMessage(Control, Int32, IntPtr, IntPtr)
    PopupBase.RelativeAlignment
    PopupBase.ShowShadow
    PopupBase.Style
    PopupBase.VeryifyMouseBasedDeactivation(Control, Int32)
    PopupBase.WndProc(Message)
    Namespace: Syncfusion.WinForms.Core
    Assembly: Syncfusion.Core.WinForms.dll
    Syntax
    public class Popup : PopupBase, IPopupHost, IPopupChild, IKeyboardMessage, IMouseMoveMessage, IMouseHook, IKeyboardHook, IPopupParent, IPopup

    Constructors

    Popup(Control)

    Initializes a new instance of the Popup class.

    Declaration
    public Popup(Control childControl)
    Parameters
    Type Name Description
    System.Windows.Forms.Control childControl

    The child control

    Properties

    ShowButtons

    Gets or sets a value indicating whether the button can show or not.

    Declaration
    public virtual bool ShowButtons { get; set; }
    Property Value
    Type
    System.Boolean

    ShowGripper

    Gets or sets a value indicating whether the gripper can show or not.

    Declaration
    public virtual bool ShowGripper { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    CreatePopupHost()

    Create the popup host.

    Declaration
    protected override PopupHostBase CreatePopupHost()
    Returns
    Type Description
    PopupHostBase

    Returns the sizable popup host.

    Overrides
    PopupBase.CreatePopupHost()

    Dispose(Boolean)

    Disposing the elements.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    The boolean value.

    Overrides
    PopupBase.Dispose(Boolean)

    OnMouseDown(MouseEventArgs)

    Occurs when mouse down.

    Declaration
    protected override void OnMouseDown(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    A mouse event arguments

    OnMouseLeave(EventArgs)

    Occurs when mouse leave from the control.

    Declaration
    protected override void OnMouseLeave(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    A event data.

    OnMouseMove(MouseEventArgs)

    Occurs while moue moved.

    Declaration
    protected override void OnMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    The mouse event arguments.

    OnMouseUp(MouseEventArgs)

    Occurs when mouse up.

    Declaration
    protected override void OnMouseUp(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    The mouse event arguments

    OnPaint(PaintEventArgs)

    Override the paint.

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    The paint event arguments

    Show(Point)

    Displays the popup control.

    Declaration
    public override void Show(Point location)
    Parameters
    Type Name Description
    System.Drawing.Point location

    The location at which the popup's left top position will appear.

    Overrides
    PopupBase.Show(Point)

    Implements

    IPopupHost
    IPopupChild
    IKeyboardMessage
    IMouseMoveMessage
    IMouseHook
    IKeyboardHook
    IPopupParent
    IPopup
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved