Home > Language Reference > Classes > UserControl

Repaint Method

Repaints the control.

Syntax

Public Sub Repaint()

Remarks

The Repaint method causes the control to be updated on screen by sending it a Paint event. If the control is not visible, either because its Visible property is set to False, or because the form on which it can be found is not displayed, this method has no effect.

In order to prevent your control from being redrawn unnecessarily, you must always use this method instead of calling the Paint event handler directly.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A