'Declaration
<System.Windows.Forms.SRCategoryAttribute("CatBehavior")> <System.Windows.Forms.SRDescriptionAttribute("FormOnFormClosingDescr")> Public Event FormClosing As System.Windows.Forms.FormClosingEventHandler
'Usage
Dim instance As NSplashScreenForm Dim handler As System.Windows.Forms.FormClosingEventHandler AddHandler instance.FormClosing, handler
[System.Windows.Forms.SRCategory("CatBehavior")] [System.Windows.Forms.SRDescription("FormOnFormClosingDescr")] 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.
Property | Description |
---|---|
Cancel | (Inherited from System.ComponentModel.CancelEventArgs) |
CloseReason | Gets a value that indicates why the form is being closed. |
Requirements
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)
See Also