OnCanResize event
Occurs when an attempt is made to resize the control.
Description
Use OnCanResize to adjust the way a control is resized. If necessary, change the new width and height of the control in the OnCanResize event handler. The OnCanResize event handler also allows applications to indicate that the entire resize should be aborted.
If there is no OnCanResize event handler, or if the OnCanResize event handler indicates that the resize attempt can proceed, the OnCanResize event is followed immediately by an OnConstrainedResize event.
OnResize event
Occurs immediately after the control is resized.
Use OnResize to make any final adjustments after a control is resized.
To modify the way a control responds when an attempt is made to resize it, use OnCanResize or OnConstrainedResize.
Note: Some controls call this event handler when the control is first created.