| Freeze Method | |
| See Also |
- newVal
Indicates whether the form is frozen:
- True: Frozen
- False: Unfrozen
Freezes and unfreezes the form. When frozen, no changes in the form are displayed.
Use this method to update the form without causing flickering.
| Visual Basic |
|---|
Public Sub Freeze( _
ByVal newVal As Boolean _
) |
- newVal
Indicates whether the form is frozen:
- True: Frozen
- False: Unfrozen
When you make visual changes to a form -- such as moving items, adding items, and adding rows to a matrix -- we recommend freezing the form by calling Form.Freeze(True). After you make all the changes you want, release the form by calling Form.Freeze(False) and update the form with all the changes by calling Form.Update.
It is not recommended to update data or perform data changes on the form while it is frozen.
When you use Form.Freeze(True) for N times, you must use Form.Freeze(False) for N times as well. Otherwise, the form is not unfrozen. For example, the following example, the form is still frozen:
oForm.Freeze(True)
oForm.Freeze(True)
oForm.Freeze(False)