On the System.Windows.Forms.GroupBox, is there any way to hide frame around it? I tried changing the FlatStyle but that does not do what I want. Thanks!
The GroupBox control is similar to the Panel control; however, only the GroupBox control displays a caption, and only the Panel control can have scroll bars.
The GroupBox displays a frame around a group of controls with or without a caption. Use a GroupBox to logically group a collection of controls on a form. The group box is a container control that can be used to define groups of controls.
To create a group of controls If you have existing controls that you want to enclose in a group box, you can select all the controls, cut them to the Clipboard, select the GroupBox control, and then paste them into the group box. You can also drag them into the group box.
A Panel
is probably a better option, but if you really need a GroupBox
for some reason, you can modify the code here to create a subclass which doesn't paint the border at all. Specifically, you'll want to override the OnPaint
method.
As far as I know this is not possible.
Try using a panel instead.
You could put a label at the top if you want and they practically do the same thing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With