Occurs when a document that has not yet been saved is about to be closed.
The DocumentClosing event handler receives an argument of the CancelEventArgs type. The following properties provide information specific to this event.
|Cancel||Gets or sets a value indicating whether the event should be canceled.|
Handle the DocumentClosing event to specify the actions to perform before the document is closed. To cancel closing, set the e.Cancel value to true.
The DocumentClosing event is raised only if the document has been modified.
Any other suggestions? Tell us here.