c# 4.0 - C# Winforms: GroupBox not resizing -
i have 2 groupboxes
on left side of 1 of tabcontrols
, call them groupbox (top left), , groupbox b (bottom left). groupboxes not resize hope.
example: when resize main form has tabcontrols mouse, or maximize it, or move screen lower resolution, groupbox b keeps width / height. causes groupbox b draw on groupbox a, kind of 'always on top' effect.
desired: both groupboxes resize according 1 / proporitionally , fit area given.
ideas?
a tablelayoutpanel can this.
- add tablelayoutpanel , size fit needs.
- anchor table top, bottom, left, , right
- put groupboxa upper left cell of table
- put groupboxb lower right cell of table
- for both groupbox size them accordingly , anchor them 4 sides.
- now grow , shrink proportionately app.
additionally can add more of controls table. if need control span multiple rows or columns use rowspan/columnspan property.
Comments
Post a Comment