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.
-
When a form is loaded and displayed and its size changes because of environmental differences
-
When a form is minimized, maximized, or restored by a user or through logic
-
When a top-level menu item is added or removed through logic, causing a menu line to be added or removed (or changed from a single menu line to a double menu line)
-
When a skin is applied or removed
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.
-
Calling the move method
-
Changing the height, width, clientHeight, or clientWidth property of the form
-
Changing the borderStyle property of the form
-
Adding or removing a scroll bar to the form
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.