Resize Event

Applies To

Form.

Description

The Resize event occurs when a form is opened and whenever the size of a form changes.

Remarks

This event occurs if you change the size of the form in a macro or event procedure; for example, if you use the MoveSize action in a macro to resize the form.

By running a macro or executing an event procedure when a Resize event occurs, you can move or resize a control when the form it’s on is resized. You can also use a Resize event to recalculate variables or reset properties that may depend on the size of the form.

When you first open a form, the following events occur in this order:

Open Load Resize Activate Current

See Also

Activate, Deactivate Events; Current Event; GotFocus, LostFocus Events; Load, Unload Events; MoveSize Action; Open, Close Events; OpenForm Action; Repaint Method; RepaintObject Action; SetFocus Method.