Questions tagged [groupbox]

It is a container that displays a frame around a group of controls with an optional header.

415 questions
3
votes
2 answers

WPF GroupBox Custom Header Alignment Left And Right

I am trying to add content to a groupbox header, so that part of the content aligns to the left and the other part aligns to the right. I've tried adding a grid as the content to the header with 2 columns, but everything aligns left. I want column…
user302775
  • 45
  • 1
  • 6
3
votes
2 answers

WPF: label CornerRadius under Border

So this is my custom GroupBox:
user979033
  • 5,430
  • 7
  • 32
  • 50
3
votes
2 answers

How can I change the ForeColor of the GroupBox text without changing its children ForeColor?

I want to know if there is an option to just change the color of group box text at the top left of the group box in a windows form and not any controls or labels located inside of the group box. I know that GroupBox.ForeColor = Color.Blue will…
user6430691
3
votes
1 answer

WPF GroupBox ControlTemplate : How to apply a Style only to elements in the Header?

I'm trying to make a ControlTemplate for a GroupBox such that if a TextBlock is declared in the Header its Background should be set to yellow. The problem is that, although I define a style for TextBlocks in the ContentPresenter for the Header, it's…
Pequatre
  • 33
  • 1
  • 3
3
votes
3 answers

Wpf - Grid using row and column definition - How to ignore columns for some rows

I'm trying to use the grid row / column definitions in my wpf application. At the moment, I need to implement a list view inside a GroupBox. Here I need to ignore the column definitions i set in the top in the view. Row and column definitions: …
Mandersen
  • 805
  • 3
  • 14
  • 22
3
votes
4 answers

How can I change the font color in a groupbox when I disable the groupbox

I am using a Groupbox in c# and at first, it is Enabled. when I use Groupbox1.Enabled = false, it's fore color (and everythings' forecolor which is in it) change to default black. and even the command label1.Forecolor = Color.White does not work.…
Mohammad
  • 87
  • 1
  • 9
3
votes
2 answers

How to wrap text in GroupBox header?

How to wrap text in GroupBox header? This code doesn't work.
Nodon
  • 967
  • 11
  • 24
3
votes
2 answers

Can I un-check a group of RadioBottoms inside a group box?

radio bottoms inside a group Box will be treated as a group of bottoms. They are mutual exclusive. How can I clean up their check states?? I have several radio bottoms, one of them are checked. How can I "clean" (uncheck) all radio…
Claire Huang
  • 961
  • 1
  • 18
  • 30
3
votes
1 answer

Change the caption color of a groupbox but not the text in the groupbox?

I have a groupbox on my winform and I'd like to change the color of the caption / title but not use ForeColor as I don't want the text in the groupbox to change.
Nikewatch
  • 252
  • 1
  • 4
  • 15
3
votes
2 answers

VB .Net Can i manage all events from inside a groupbox in an efficient way?

I have a groupbox containing a lot of Checkboxes - only Checkboxes. Is there a simple/fast way to handle the same event coming from different controls? I know I can write a single sub and let it handle all the Events, but it's really time-consuming…
Ciacciu
  • 137
  • 8
3
votes
2 answers

WPF GroupBox Header Text Issue

I have the following XAML which displays correctly: .... I now want…
BrianKE
  • 4,035
  • 13
  • 65
  • 115
3
votes
3 answers

Winforms groupbox with colored border

I have used the following code to create a groupbox with colored borders: Public Class BorderGroupBox Inherits GroupBox Private _borderColor As Color Private _borderWidth As Integer Private _borderStyle As ButtonBorderStyle …
Matthias
  • 280
  • 2
  • 9
  • 19
3
votes
1 answer

Label and GroupBox triggers not working, same trigger works on StackPanel

I have a set of triggers in a XAML form, and for the life of me I can't figure out why one set works, and the other doesn't, despite being bound to the exact same variable. First, the triggers that do work:
Matt Holmes
  • 1,055
  • 1
  • 8
  • 22
3
votes
1 answer

How to organize controls in a Groupbox inside a TableLayoutPanel in VB.net

I've run into an interesting problem with Windows form application design that I'm having some difficulty resolving. I am currently working on a program that is supposed to be a digital replacement for a certain checklist that my company uses. This…
Arch
  • 45
  • 2
  • 10
3
votes
1 answer

Change border color of GroupBox in Delphi

How can I change the border color of a GroupBox in Delphi?
stacker
  • 603
  • 4
  • 10
  • 15