The event handler receives an argument of type ApplicationClosingEventArgs containing data related to this event. The following ApplicationClosingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | A Boolean value to indicate whether to cancel the event. Set Cancel to true to cancel the event. |
The event handler can cancel the closing by setting the cancel property of the event argument to false.