It is a container that displays a frame around a group of controls with an optional header.
Questions tagged [groupbox]
415 questions
67
votes
4 answers
GroupBox in WPF can only contain one element?
It seem that GroupBox can only contain one element, if I place more than one it's won't go inside(or get deleted in blend).
Is this by design or am I doing something wrong?

Athiwat Chunlakhan
- 7,589
- 14
- 44
- 72
42
votes
3 answers
Can Margin be enforced even with Dock property set?
I have a WinForms Form with a few controls on it. All of them are GroupBox controls and I want them stacked, with a vertical margin set between them. I have set the Dock property to Top and it stacks them alright, but ignores the margin (controls…

Kornelije Petak
- 9,412
- 15
- 68
- 96
42
votes
6 answers
GroupBox / TitledBorder in JavaFX 2?
Is there something like a GroupBox or TitledBorder available on JavaFX 2?
Thanks for any hint :-)

stefan.at.kotlin
- 15,347
- 38
- 147
- 270
41
votes
4 answers
Does the GroupBox Header in WPF swallow mouse-clicks?
Have a look at this very simple example WPF program:

Matt Hamilton
- 200,371
- 61
- 386
- 320
37
votes
7 answers
How do you change the color of the border on a group box?
In C#.NET I am trying to programmatically change the color of the border in a group box.
Update: This question was asked when I was working on a winforms system before we switched to .NET.

Amy Patterson
- 679
- 1
- 10
- 24
26
votes
2 answers
Panel vs GroupBox in a Windows Forms application
Aren't both doing the same thing? How is each different from the other in case of a Windows Forms application.

Anirudh Goel
- 4,571
- 19
- 79
- 109
24
votes
2 answers
Border of qgroupbox
I'm having some trouble setting a border of a groupbox.
my aim is to have something like this:
but so far all I can get is this:
the stylesheet i'm using:
#groupBox {
border: 1px solid gray;
border-radius: 9px;
}

SamuelNLP
- 4,038
- 9
- 59
- 102
23
votes
4 answers
TLabel and TGroupbox Captions Flicker on Resize
So, I have an application that loads different plugins and creates a
new tab on a TPageControl for each one.
Each DLL has a TForm associated with it.
The forms are created with their parent hWnd as the new TTabSheet.
Since the TTabSheets aren't a…

ThievingSix
- 1,044
- 1
- 11
- 23
22
votes
5 answers
WPF GroupBox with no header space
Easy one, I would like to have a GroupBox with no header space
The closest thing is a border, but the border "by default" does not have the same Style as the group box.
What's the easiest way (least xaml / code) to get the desired GroupBox ?
Thanks

PBelanger
- 1,269
- 1
- 13
- 24
22
votes
9 answers
Loop through all controls of a Form, even those in GroupBoxes
I'd like to add an event to all TextBoxes on my Form:
foreach (Control C in this.Controls)
{
if (C.GetType() == typeof(System.Windows.Forms.TextBox))
{
C.TextChanged += new EventHandler(C_TextChanged);
}
}
The problem is that…

RRM
- 3,371
- 7
- 25
- 40
17
votes
11 answers
How to get a checked radio button in a groupbox?
I have a lot of radio buttons in a groupbox. Normally I will check each radio button individually using If radiobutton1.Checked = True Then.
But I think maybe there is smart way to check which radio button being checked in a groupbox. Any idea?

Predator
- 1,267
- 3
- 17
- 43
17
votes
12 answers
Event handler for groupBox with radioButtons in C#
I have some radionButtons in groupBox and I need to do action what I could call "one of radiobuttons.checked changed" or find out from radiobutton what index is changed.
I've tryed to find it in list of events but I couldn't find the right one.…

user1097772
- 3,499
- 15
- 59
- 95
16
votes
4 answers
How can I add moving effects to my controls in C#?
I have a Panel In my C# form and I have a button. When I click on the Button the invisible Panel Shows. Instead of that I want the Panel to move in or slide in.
For example when you click on a combobox the dropdown list doesnt just pop in. I want my…

Pedrum
- 634
- 3
- 7
- 16
16
votes
3 answers
Attach components to GroupBox in C#
I want to insert a group box in the form and put in 3 radio buttons in it.
Are there any advantages in attaching the 3 radio buttons to the groupbox.? Cab we even do that?
If I have to do it how do i attach the 3 radio buttons to the groupbox so…

zack
- 7,115
- 14
- 53
- 63
15
votes
5 answers
Determining checked Radiobutton from groupbox in WPF following MVVM
I have a groupbox with some radiobuttons. How do I get to know which one which is checked? I am using WPF and following MVVM.

B Bhatnagar
- 1,706
- 4
- 22
- 35