Share via


Redraw Property (ModHFGrid)

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns or sets a value that determines whether the ModHFGrid should be redrawn automatically after each change.

Syntax

object.Redraw [=Boolean]

The Redraw property syntax has these parts:

Part Description
object An object expression that evaluates to the ModHFGrid Control object.
Boolean A Boolean expression that specifies whether the ModHFGrid is redrawn automatically after each change.

Settings

The settings for Boolean are:

Part Description
True The ModHFGrid automatically redraws after each change. This is the default.
False The ModHFGrid does not redraw after each change.

Remarks

You can use this property in code to reduce flicker while making extensive updates to the contents of the ModHFGrid.

Example

The following code turns off redrawing, makes several changes to the contents of ModHFGrid, and then turns on redrawing to show the results.

Dim i As Integer
' Freeze ModHFGrid to avoid flicker.
ModHFGrid.Redraw =False
' Update ModHFGrid contents.
For i =ModHFGrid1.FixedRows To ModHFGrid1.Rows - 1
ModHFGrid1.TextMatrix(i, 1) =GetName(i, 1)
ModHFGrid1.TextMatrix(i, 2) =GetName(i, 2)
Next
' Show results.
ModHFGrid1.Redraw =True

See Also

ModHFGrid Control