resize

resize();

The resize event of the Form class occurs when the size of a form is changed. This event is called under the following circumstances.

The resize event generated by logic changes is called after the current logic event is completed.

This event is not called if the form is resized by logic in one of the following ways.

Use a resize event to move or resize controls when the parent form is resized or to recalculate variables or properties that may depend on the size of the form.