I have two problems with GroupBox , they appear after setting GroupBox.AutoSizeMode = AutoSizeMode.GrowAndShrink and GroupBox.AutoSize = true .

GroupBox.Text width is not taken into account at all. Selecting a size will only match the content, and then the text will be wrapped if it does not fit. If it does not fit, it simply does not appear.
There is an unnecessarily large gap between the bottom of the GroupBox and the Label inside.
Questions:
How to make GroupBox comply with its Text property when autosaving? And how to remove this gap?
For some reason, my previous question is paused. Should I remove it or what?
PS: If you paused or something else, comment on what is definitely not clear in what I ask!
c # winforms autosize groupbox
Sinatr
source share