Spread Windows Forms 15.0
FarPoint.Win Assembly / FarPoint.Win Namespace / PopupWindowHelper Class / PopupCancel Event


In This Topic
    PopupCancel Event (PopupWindowHelper)
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Event PopupCancel As PopupCancelEventHandler
    'Usage
     
    
    Dim instance As PopupWindowHelper
    Dim handler As PopupCancelEventHandler
     
    AddHandler instance.PopupCancel, handler
    public event PopupCancelEventHandler PopupCancel
    Event Data

    The event handler receives an argument of type PopupCancelEventArgs containing data related to this event. The following PopupCancelEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets or sets whether to cancel closing the form. Set to true to prevent the popup from being closed.  
    Gets the location of the mouse down where the popup occurred that caused the cancel.  
    Gets the popup form.  
    See Also