Window.Maximize method

From Xojo Documentation

Method

Window.Maximize()

Supported for all project types and targets.

Maximizes the window if it is not already maximized and calls the Maximize event handler. If the window was already maximized when you call this method, then it is restored to its prior state and calls the Restore event handler.

Notes

If the window is not visible when Maximize is called, it becomes visible.