Window.Refresh

From Xojo Documentation

Method

Window.Refresh([EraseBackground as Boolean])

Supported for all project types and targets.

Repaints the entire contents of the window.

If the optional parameter EraseBackground is True, the background will be erased prior to redrawing the window. The default is True.