SpreadsheetGear 2012
FormClosing Event (WorkbookExplorer)






Syntax
'Declaration
 
<SRCategoryAttribute("Behavior")>
<SRDescriptionAttribute("Occurs whenever the user closes the form, before the form has been closed and specifies the close reason.")>
Public Event FormClosing As System.Windows.Forms.FormClosingEventHandler
'Usage
 
Dim instance As WorkbookExplorer
Dim handler As System.Windows.Forms.FormClosingEventHandler
 
AddHandler instance.FormClosing, handler
[SRCategory("Behavior")]
[SRDescription("Occurs whenever the user closes the form, before the form has been closed and specifies the close reason.")]
public event System.Windows.Forms.FormClosingEventHandler FormClosing
public event FormClosing: System.Windows.Forms.FormClosingEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
[SRCategory("Behavior")]
[SRDescription("Occurs whenever the user closes the form, before the form has been closed and specifies the close reason.")]
public: __event System.Windows.Forms.FormClosingEventHandler* FormClosing
[SRCategory("Behavior")]
[SRDescription("Occurs whenever the user closes the form, before the form has been closed and specifies the close reason.")]
public:
event System.Windows.Forms.FormClosingEventHandler^ FormClosing
Event Data

The event handler receives an argument of type System.Windows.Forms.FormClosingEventArgs containing data related to this event. The following FormClosingEventArgs properties provide information specific to this event.

PropertyDescription
Cancel (Inherited from System.ComponentModel.CancelEventArgs)
CloseReasonGets a value that indicates why the form is being closed.  
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

Reference

WorkbookExplorer Class
WorkbookExplorer Members

Send Feedback