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.
Asked
Active
Viewed 1,717 times
3

Nikewatch
- 252
- 1
- 4
- 15
-
1You'll find your answer here: http://stackoverflow.com/questions/941492/change-group-box-text-color (not the accepted from J.Skeet) – Tim Schmelter Jan 26 '15 at 12:14
-
1Just to clarity: Tim points to this one: http://stackoverflow.com/a/7493900/993547, which is not the best workaround I believe. – Patrick Hofman Jan 26 '15 at 12:18
-
@TimSchmelter Thanks Tim that does work but not as well as Patrick's. – Nikewatch Jan 26 '15 at 13:13
1 Answers
2
You could wrap the RadioButton
in another Panel
which you Dock
Fill
in the GroupBox
. Then set the ForeColor
of that Panel
to SystemColors.ControlText
.
This prevents the ForeColor
of the RadioButton
to be derived from the GroupBox
.

Patrick Hofman
- 153,850
- 22
- 249
- 325