DesktopWindow.Refresh

From Xojo Documentation

Method

DesktopWindow.Refresh(x As Integer, y As Integer, width As Integer, height As Integer, immediately As Boolean = False)

New in 2021r3

Supported for all project types and targets.

Redraws the portion of the window passed the next time the OS redraws the window or immediately if True is passed.