Refresh

This method forces a complete repaint of a Form object or control.

Syntax

object.Refresh

Parameters

object
Object expression that evaluates to an object.

Return Value

None.

Remarks

Use the Refresh method when you want to display one form while another form loads.

Generally, painting a form or control is handled automatically while no events are occurring. However, there may be situations where you want the form or control updated immediately. For example, if you use a file list box, a directory list box, or a drive list box to show the current status of the directory structure, you can use Refresh to update the list whenever a change is made to the directory structure.

You cannot use Refresh on Menu or Timer controls.