Application.AutoQuit Property

Syntax

AutoQuit as Boolean


If True, the application will quit when the last window is closed, whether by calling the Close method of the Window class or the user closed the last window. AutoQuit defaults to True on non-MDI Windows applications and True on Linux.

It defaults to False on MDI Windows and Macintosh applications.