RectControl.Refresh

From Xojo Documentation

Method

RectControl.Refresh([EraseBackground as Boolean])

Supported for all project types and targets.

Repaints the entire contents of the control immediately.

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

Notes

Calling this frequently can cause the code executing to slow down. It is often preferable to call RectControl.Invalidate instead.

Sample Code

Me.Refresh(False)