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.

  1. add tablelayoutpanel , size fit needs.
  2. anchor table top, bottom, left, , right
  3. put groupboxa upper left cell of table
  4. put groupboxb lower right cell of table
  5. for both groupbox size them accordingly , anchor them 4 sides.
  6. 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

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -