SpreadsheetGear.Windows.Forms Namespace > RangeExplorer Class : FormClosed Event |
'Declaration
<SRCategoryAttribute("Behavior")> <SRDescriptionAttribute("Occurs whenever the user closes the form, after the form has been closed and specifies the close reason.")> Public Event FormClosed As System.Windows.Forms.FormClosedEventHandler
'Usage
Dim instance As RangeExplorer Dim handler As System.Windows.Forms.FormClosedEventHandler AddHandler instance.FormClosed, handler
[SRCategory("Behavior")] [SRDescription("Occurs whenever the user closes the form, after the form has been closed and specifies the close reason.")] public event System.Windows.Forms.FormClosedEventHandler FormClosed
public event FormClosed: System.Windows.Forms.FormClosedEventHandler;
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, after the form has been closed and specifies the close reason.")] public: __event System.Windows.Forms.FormClosedEventHandler* FormClosed
[SRCategory("Behavior")] [SRDescription("Occurs whenever the user closes the form, after the form has been closed and specifies the close reason.")] public: event System.Windows.Forms.FormClosedEventHandler^ FormClosed
The event handler receives an argument of type System.Windows.Forms.FormClosedEventArgs containing data related to this event. The following FormClosedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
CloseReason | Gets a value that indicates why the form was closed. |
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