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