It is a container that displays a frame around a group of controls with an optional header.
Questions tagged [groupbox]
415 questions
4
votes
6 answers
How do I set the GroupBox caption colour
On my system, the caption of a groupbox is always a dark blue colour, how do I change this?
The answer to How do you change the color of the border on a group box? shows how I can override the drawing of the caption and border, but I don't want to…

Patrick McDonald
- 64,141
- 14
- 108
- 120
4
votes
1 answer
WPF Groupbox height needs to change dynamically?
I am working with a groupbox in WPF, and Inside of the groupbox is a stackpanel. The stackpanel has items that are removed, and added to its children.
The problem I am experiencing is that Stackpanel within the groupbox is changing height, but the…

TheJediCowboy
- 8,924
- 28
- 136
- 208
4
votes
1 answer
WPF GroupBox header Alignment issue
How can i align the groupBox header to the center rather than the default left positioning.
I read in many post that one can use template but i have no idea about such thing. So please let me know how can i get the header at center.
Thanks !!

Pankaj Upadhyay
- 12,966
- 24
- 73
- 104
4
votes
2 answers
Why does Windres report a syntax error on my GROUPBOX statement?
I'm experimenting with the Win32 API in C++, specifically with writing resource files. Now, my entire project was working just fine, menus and titles and everything. However, when I add this code for a modal dialog box to the .rc file:
IDD_ABOUT…

Ken Bellows
- 6,711
- 13
- 50
- 78
4
votes
2 answers
Rounded corners in GroupBox control
How can I get rounded corners in a GroupBox in my form? Is there any option in the property tab?

Srivastava
- 3,500
- 12
- 46
- 74
4
votes
2 answers
Delete Controls inside GroupBox
I created a groupbox and then populate it with buttons during runtime. I also created a button, say Button1 to loop through the groupbox and delete those buttons. Here's my code
for Button1:
Public Sub removeControls()
For Each ctrl As Control…

ghostdog74
- 327,991
- 56
- 259
- 343
4
votes
2 answers
XAML: How do I make part of a GroupBox Header bold?
I need to make the first part of a GroupBox Header bold, and the other part non-bold. Here is the goal I'm trying to achieve:
Students (Max: 32)
…

MrProgrammer
- 589
- 1
- 7
- 17
4
votes
3 answers
How do I change the corners of a groupBox to sharp instead of round C# .NET WPF
I just started working with GroupBoxes and I was just wondering why I cant make my corners sharp, as if it was a rectangle.
I've seen a few online and thier corners arent round. Why is that?

Jame O. Weinburgh
- 67
- 1
- 2
4
votes
2 answers
WinForm - TabStop Not Working
I have a WinForm with 3 group boxes, one with combo boxes, and two with radio buttons. I set all of them and their children controls to "TabStop = false", but when I cycle with TAB, the currently selected radio button in each of the last two group…

OIO
- 363
- 7
- 16
4
votes
3 answers
ScrollViewer is not working inside groupbox?
I want to include ScrollViewer in my Groupbox, but it is not working. My code is:
…

CodeSniper
- 493
- 3
- 12
- 23
4
votes
4 answers
Why does GroupBox not have a MouseMove event?
The WinForms GroupBox control doesn't support MouseMove (or at least, not consistently), and I don't understand why.
Since it descends from Control, it does have a MouseMove event, but GroupBox explicitly reintroduces it with Browsable(false), so…

Joe White
- 94,807
- 60
- 220
- 330
4
votes
1 answer
How create dynamic GroupBox in C#
I am trying to create groupbox dynamically and these GB will create on selection on checkbox.
Means I have 5 check boxes now if I select 1st CB then 1 GB with some other dynamic checkbox shall be created, if I select 3rd check then another GB shall…

user2241865
- 113
- 4
- 14
4
votes
1 answer
How do I dynamically change groupboxes on button click?
I'm creating an application on Visual Studio 2012 (c#/Winforms).
What exactly i have in mind is depicted by the image:
When Button1 is clicked the content within the groupbox will change, same with button 2 & 3.
I'm currently using the following:…

Snak3
- 43
- 1
- 5
3
votes
1 answer
groupboxes becomes inaccessible using TAB after clicking button
I have a form which has two groupboxes (& other controls as well, its the groupboxes that are creating problems), a 'SAVE' button which saves the form data into a database & a 'NEW FORM' button which resets the form (ex. txtName.clear();…

Avrajit
- 41
- 4
3
votes
0 answers
Button Border clipped in WPF with 125% DPI Setting
When I use 125% DPI setting in Windows, sometimes a button border is not rendered. It seems to depend on the size and position, maybe also the parent element of a button:
In my app, I can also see in the WPF designer that a parent border seems to…

Lumo
- 627
- 6
- 21