You can achieve that with a TableLayoutPanel
like this:
- Add a
TableLayoutPanel
on yourForm
. Set the anchor toLeft
,Top
,right
(andBottom
in needed) or set Dock property toFill
- Add two columns on this
TableLayoutPanel
(by default there is two columns and two rows, so remove the last row) - Insert your
GroupBoxs
to each cell - set the Dock property to
Fill
orTop
for eachGroupBox
- By default the Me.TableLayoutPanel1.ColumnStyles is
System.Windows.Forms.SizeType.Percent
, so just adjust the first column with in designer as you need.
Result:
Before resizing
After resizing (image is reduced so you can see that it keeps proportion)