Method Fit
Fit(Control)
Tells the sizer to resize the control so that its client area matches the sizer's minimal size (ComputeFittingClientSize(Control) is called to determine it).
SizeI Fit(Control control)Parameters
- controlControl
- Affected control. 
Returns
- SizeI
- The new window size. 
Remarks
This is commonly done in the constructor of the control itself.