Spread Windows Forms 7.0 Product Documentation
PopupCancel Event
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > PopupWindowHelper Class : PopupCancel Event


Glossary Item Box

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

Visual Basic (Declaration) 
Public Event PopupCancel As PopupCancelEventHandler
Visual Basic (Usage)Copy Code
Dim instance As PopupWindowHelper
Dim handler As PopupCancelEventHandler
 
AddHandler instance.PopupCancel, handler
C# 
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
Cancel Gets or sets whether to cancel closing the form. Set to true to prevent the popup from being closed.
CursorLocation Gets the location of the mouse down where the popup occurred that caused the cancel.
Popup Gets the popup form.

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.