Application.Close
From Xojo Documentation
Event
The app is quitting.
Notes
Close is called after CancelClose and after the window's CancelClose and Close 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 Application.CancelClose or Window.CancelClose.
See Also
- Description of the termination process in Application.CancelClose.