If your GroupBox is inside another control, such as a tab or something else, follow these steps:
In my case, I had a GroupBox inside the tab, and I called the methods below in the InitializeComponent() method to force Groupbox to adjust the tab size.
this.groupBox4.ResumeLayout(false); this.groupBox4.PerformLayout(); this.tabPage2.ResumeLayout(false); this.tabPage2.PerformLayout();
And if you have several group boxes, you need to set the binding accordingly.
source share