Adjust resize constraints.
Use OnConstrainedResize to adjust a controlís constraints when an attempt is made to resize it. Upon entry to the OnConstrainedResize event handler, the parameters of the event handler are set to the corresponding properties of the controlís Constraints object. The event handler can adjust those values before they are applied to the new height and width that is being applied to the control. (The CanAutoSize method or an OnCanResize event handler may already have adjusted this new height and width).
On exit from the OnConstrainedResize event handler, the constraints are applied to the attempted new height and width. Once the constraints are applied, the controlís height and width are changed. After the controlís height and width change, an OnResize event occurs to allow any final adjustments or responses.
The OnConstrainedResize handler is called immediately after the OnCanResize handler.