DesktopWindow.Close
From Xojo Documentation
Method
Closes the window. Once closed, a window cannot be refreshed or redrawn. Calling Close triggers the CancelClosing event.
Closes the window. Once closed, a window cannot be refreshed or redrawn. Calling Close triggers the CancelClosing event.