Repaint Method Example

The following example uses the Repaint method to repaint a form when the form receives the focus:

Private Sub Form_Activate()
    Me.Repaint
End Sub