DesktopApplication.Closing
From Xojo Documentation
Event
The app is quitting.
Notes
Closing is called after CancelClosing and after the window's CancelClosing and Closing events.
There is nothing you can do to abort the quitting process at that time. If you need to control if your app is allowed to quit in the current context, use DesktopApplication.CancelClosing or DesktopWindow.CancelClosing.
See Also
- Description of the termination process in DesktopApplication.CancelClosing.