Syntax
| Visual Basic (Declaration) | |
|---|
<SRDescriptionAttribute("Occurs whenever the user closes the form, after the form has been closed and specifies the close reason.")>
<SRCategoryAttribute("Behavior")>
Public Event FormClosed As FormClosedEventHandler |
| C# | |
|---|
[SRDescriptionAttribute("Occurs whenever the user closes the form, after the form has been closed and specifies the close reason.")]
[SRCategoryAttribute("Behavior")]
public event FormClosedEventHandler FormClosed |
Event Data
The event handler receives an argument of type 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. |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also