If you want your controls to share vertical space of the GroupBox
, you can use a TableLayoutPanel
or a SplitContainer
.
By using a TableLayoutPanel
you can easily specify how the vertical space should be shared by controls. For example you can add two rows to the TableLayoutPanel
and give them each 50% of the whole height.
By using a SplitContainer
, the user can change the occupied heights of the controls at runtime.