R
Roy Chastain
Currently this code has to work in .Net 1.1
I have a form. I has a control (based on Panel) that occupies a large portion of the form. The control is anchored on all 4
sides. It is not docked on any side. The panel control resizes and repositions its contents based on its size.
There is a minimum useful size for the panel control. I would like to limit the minimum size of the form based on the panel
reaching its minimum size.
My first thought is to set the minimum size of the form to the size of the panel plus its distance from the edges of the form.
This would work for the simple case, but if the panel is placed inside another container control that is on the form then things
get more messy.
Is there a better way?
Thanks
I have a form. I has a control (based on Panel) that occupies a large portion of the form. The control is anchored on all 4
sides. It is not docked on any side. The panel control resizes and repositions its contents based on its size.
There is a minimum useful size for the panel control. I would like to limit the minimum size of the form based on the panel
reaching its minimum size.
My first thought is to set the minimum size of the form to the size of the panel plus its distance from the edges of the form.
This would work for the simple case, but if the panel is placed inside another container control that is on the form then things
get more messy.
Is there a better way?
Thanks