| Visual Basic (Declaration) | |
|---|---|
Public Event FormClosing As FormClosingEventHandler | |
| C# | |
|---|---|
public event FormClosingEventHandler FormClosing | |
The event handler receives an argument of type 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. |