It is a container that displays a frame around a group of controls with an optional header.
Questions tagged [groupbox]
415 questions
2
votes
0 answers
WPF Custom GroupBox Header OpacityMask issues
I've created a custom GroupBox control that provides a button at the top right. I noticed that the border does not provide a gap for the button like it does for the header, so I wrote a custom BorderGapConverter. Everything works until the content…

Arthur
- 75
- 1
- 8
2
votes
1 answer
How do I have a seperate padding for groupbox header and groupbox content
I have a groupbox, but I want to had a padding of 5 all around the header, but no margin around the content.
How would I best go about this? I can't seem to find a way to seperate the padding values from each other...

pingu2k4
- 956
- 2
- 15
- 31
2
votes
1 answer
GroupBox header background not updating when using Visual States
I have a group box that has custom styling on it and I'm trying to create Visual states for it and move to those visual states when a button is hit on my program.
The code below stylizes the groupbox to and changes the header to solid blue
Also be…

Tbooty
- 269
- 2
- 14
2
votes
1 answer
HeaderStringFormat issue when using Curly Brace next to the beginning quote
I have the following XAML. The idea is to append the text " For Report" after a string that is coming from a bound XML file.
When I add {0}…

Ender
- 35
- 7
2
votes
1 answer
Groupbox adjust width based on text length
I have a c# app (winform) that generates Groupboxes from an xml file and based on what's in the file, populates it with Radio Buttons or CheckBoxes. Each of these groupboxes have a name, some of them are longer and they get cut off half way through.…

cyberbemon
- 3,000
- 11
- 37
- 62
2
votes
1 answer
Adding click/double-click events to static group box controls
Having realised my own reasons were way too dubious, I've now gone about this a different way. But I'm still curious...
For reasons of nostalgia, familiarity and laziness, I'm coding a UI with MFC. For dubious reasons (as if those were not enough),…

omatai
- 3,448
- 5
- 47
- 74
2
votes
1 answer
GroupBox isn't displayed correctly on dark background in WPF
I'm trying to draw a GroupBox similar to the image below on a dark-colored background.
The first thing I noticed was that also I have chosen a rather dark color #383838 for the border, it still displays a white color! How can I fixed this?
Also can…

Vahid
- 5,144
- 13
- 70
- 146
2
votes
1 answer
How do I change the width of a group box in MFC programmatically?
Sorry, I'm more of a C# person but I'm having to update some legacy MFC code. I'm starting to realize why C# was a good upgrade.

bsh152s
- 3,178
- 6
- 51
- 77
2
votes
1 answer
WPF - Groupbox header alignment
in a WPF app, I want to achieve something like this for my groupbox:
The goal is creating a template for the header, just to display something in the left (checkbox + text), and something in the right side (button).
Unfortunately, the only I get…

Borja López
- 2,303
- 2
- 14
- 16
2
votes
1 answer
Assigning Default/AcceptButton values inside GroupBox Controls
Is there any function in Visual Basic .NET to make a button inside a GroupBox act as the AcceptButton, but only for the other form controls it shares the GroupBox with?
I'm only seeing the option on the main form and there doesn't seem to be…

Optimaximal
- 545
- 1
- 5
- 28
2
votes
3 answers
Stop double call to function using radioButton CheckedChanged events?
I have 3 radio buttons all held within a groupbox (so only 1 can be marked at a time). I've got my code working, but to be quicker on updating my label, I want to stop the function from being called twice when a new radioButton is selected.
For…

Analytic Lunatic
- 3,853
- 22
- 78
- 120
2
votes
1 answer
Placing more than one element into a GroupBox in WPF
I'm trying to make a GroupBox with a few (radio)buttons in it. But in the samples i'm using checkbox.

Rabcor
- 249
- 1
- 4
- 14
2
votes
1 answer
TabStop and Focus on a GroupBox
I have created a custom control which extends GroupBox. This control supports collapsing and expanding and I use the GroupBoxRenderer and ButtonRenderer to make it look like a typical GroupBox that has a Button in the corner. I have handled all the…

steinybot
- 5,491
- 6
- 37
- 55
2
votes
3 answers
clear Winforms GroupBox without destroying content
I want to clear the content of a GroupBox to fill it with new options, but I cant use the Dispose() function since I don't want to destroy the objects in it (Textboxes from another class).
Is there a way to empty a GroupBox without destroying the…

Yui
- 69
- 1
- 6
2
votes
1 answer
Printing scales my WPF-GroupBox
I'm trying to print out some information from my wpf-application. I found some code to make what I want to print to fit one page and it does the job very well. The problem is that after I print what i want, the method downscale my wpf-control, which…

user2236165
- 741
- 2
- 11
- 24