It is a container that displays a frame around a group of controls with an optional header.
Questions tagged [groupbox]
415 questions
14
votes
5 answers
Styling a GroupBox
I'm trying to create a GroupBox design like this.
I have looked at the GroupBox.HeaderTemplate
but I'm having problems creating the blue background color, with a width of 100%.
The same goes for the border.
My code so far
…

gulbaek
- 2,481
- 13
- 44
- 65
12
votes
3 answers
How do I style a GroupBox caption separately from its contents?
I'm developing a WinForms application and on one form, I use a GroupBox to group related controls together. I would like to style the caption in a particular way (e.g. making the caption bold). By altering the styling for the GroupBox, I can…

CJM
- 11,908
- 20
- 77
- 115
12
votes
4 answers
Groupbox with a flowlayout panel inside and autosize = true shrinks like it is empty
I have a groupbox that holds a flowlayout panel and the flowlayout panel holds a bunch of controls. I set the flowlayout panel to dock with the parent. Since I don't know how many controls will be in the panel, I set the group box autosize to true…

scott
- 2,991
- 5
- 36
- 47
12
votes
8 answers
Android Check box Group
I'm trying to apply some kind of validation on a group of check boxes (e.g. Two contradictory items cannot be checked together) so I want to somehow group Check Box objects and apply something like RequiredFieldValidator on the whole group once and…

Mohamed Sobhy
- 385
- 1
- 5
- 17
11
votes
2 answers
WPF Groupbox header position alignment
Is it possible to set the position alignment for a GroupBox Header in WPF? The default is to place in the top left corner of the GroupBox outline but I would like it to be centered at the top. I know that you can set the properties of the text…

ambog36
- 301
- 1
- 2
- 13
9
votes
3 answers
How to add property to existing Winforms control
I'm not sure if this is even possible. I've done some research, but haven't been able to find anything conclusive. There is a similar question here, but it's for WPF.
What I'd like to do is add a custom property to an existing WinForms GroupBox (or…

gnarlybracket
- 1,691
- 4
- 18
- 37
9
votes
2 answers
WPF: GroupBox dynamic height
I have a textbox and datagrid inside of a dockpanel that is in a WPF groupbox.

Rick Make
- 521
- 2
- 6
- 14
9
votes
5 answers
C# Winforms: GroupBox not resizing
I have two GroupBoxes on the left side of one of my TabControls, call them GroupBox A (top left), and GroupBox B (bottom left). The GroupBoxes do not resize like I would hope.
Example:
When I resize the main form that has the TabControls with my…

scryptKiddy
- 427
- 2
- 9
- 18
8
votes
3 answers
Android: how to make a GroupBox widget?
It appears that Android doesn't offer such a useful widget. However, my screen design requires a view like this:
Also, the interaction design requires that such boxes are displayed and hidden, depending on other data.
Of course, I could construct…

JBM
- 2,930
- 2
- 24
- 28
8
votes
5 answers
Can you hide a QGroupBox frame but preserve it's content visible?
I have a QGroupBox. Depending on the context, it's title may be redundent (displayed in another place of the GUI), so I then need to make as if the QGroupBox was not here....but I must preserve it's content visible (so I don't want to call…

jpo38
- 20,821
- 10
- 70
- 151
8
votes
4 answers
Do we have any Group box in bootstrap
In one of my application we need a group box like feature just like as shown in the picture below, We are using Twitter Bootstrap 3 css. I have searched whether there is any feature like that in Bootstrap 3 but couldn't find any, I don't know…

Alex Man
- 4,746
- 17
- 93
- 178
8
votes
5 answers
WPF GroupBox HeaderTemplate and DataBinding
I define a headertemplate into a wpf groupbox and the databinding doesn't work. I don't understand why.

Coolweb
- 485
- 1
- 6
- 16
7
votes
3 answers
GroupBox autosize
Take a GroupBox, put let say Label inside and then set AutoSizeMode = GrowAndShrink and AutoSize = true.
Two problems will arise:
There is a huge gap between Label and bottom of GroupBox (almost enough to fit another Label lol);
AutoSize doesn't…

Sinatr
- 20,892
- 15
- 90
- 319
6
votes
5 answers
Change group box text color?
How do you change the text color of a group box in C#? The "documentation" doesn't even mention this, and Googling hasn't turned up an answer.
Thanks!
Alan

user20493
- 5,704
- 7
- 34
- 31
6
votes
1 answer
Why does my WPF GroupBox looks so weird?
I have no style set anywhere in my application!
UPDATE:

Elisabeth
- 20,496
- 52
- 200
- 321