AutoRedraw

This property returns and sets the persistence of output from a graphics method.

Syntax

form.AutoRedraw [= persist]

Parameters

form
Object expression that evaluates to a Form object.
persist
Boolean expression that specifies how an object is repainted.

Remarks

The output of graphical methods such as DrawCircle, DrawLine, and PointSet remains on the form if you set AutoRedraw to True. Setting AutoRedraw to False, the default, causes graphics drawn on the form to disappear when the form is repainted. Setting the BackColor property erases all graphics and text, including persistent graphics.