Application.AllowAutoQuit
From Xojo Documentation
Property (As Boolean )
aApplication.AllowAutoQuit = newBooleanValue
or
BooleanValue = aApplication.AllowAutoQuit
New in 2019r2
Supported for all project types and targets.
or
BooleanValue = aApplication.AllowAutoQuit
New in 2019r2
Supported for all project types and targets.
When True, the application quits when the last window is closed, whether by calling the Close method of the Window class or by the user closing the last window manually.
Notes
AllowAutoQuit defaults to True on non-MDI Windows applications and True on Linux. It defaults to False on MDI Windows and macOS applications.
Sample Code
This code is in the Open event of the App class.
App.AllowAutoQuit = True