Window.Close method

From Xojo Documentation

Method

Window.Close()

Supported for all project types and targets.

Closes the window. Once closed, a window cannot be refreshed or redrawn. Calling Close triggers the CancelClose event.