Spread Windows Forms 6.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/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

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