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
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.
Property | Description |
---|
Cancel | Gets/sets whether to cancel closing the form. Set to true to prevent the popup from being closed. |
CursorLocation | Gets the location that the mouse down which would cancel this popup occurred |
Popup | Gets the popup form |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also