[RESOLVED] Change the Color of the Groupbox Title
I have a background image of a green chalkboard and on this board I display my controls that the user interacts with. I have a groupbox that is used with a set of 4 radio buttons, and the group box has text at the top left corner that says "Pick the Generic Name".
This text is in Blue, and is a little difficult to see against the green chalkboard background.
Is there a way to change the color of this text??
I have used the search feature to look, but haven't had much sucess so far in finding an answer.
Thanks,
Richard
Re: Change the Color of the Groupbox Title
Change the GroupBox.ForeColor property
Re: Change the Color of the Groupbox Title
Thats not working. I think maybe I wasn't clear enough.
When you have a groupbox, there is a set of text in the upper left border of the groupbox, that corresponds to the text you type in the Text box of the properties for that groupbox. It's the color of this text that I wish to change, not the text that is contained within the groupbox itself.
Thanks,
Richard
Re: Change the Color of the Groupbox Title
Double post because of lag.
Re: Change the Color of the Groupbox Title
How is it "not working"? Changing the GroupBox's Forecolor property is exactly how to do what you asked.
Because it's a group box it will automatically also change the forecolor of all the controls in it.
You can change the forecolors of the controls in the group box back to normal once you've changed the group box forecolor if you want. But as soon as you change the group box forecolor it will do so for all the controls in it.
Re: Change the Color of the Groupbox Title
Well, what he means is that the groupbox titles are ALWAYS in blue. If you change the forecolor you will change the color of its contents. He needs to know how to change the Blue Title in it.
Re: Change the Color of the Groupbox Title
Quote:
Originally Posted by
SwiftSeller
Well, what he means is that the groupbox titles are ALWAYS in blue
That's a FALSE statement. All you have to do is change the Forecolor of the Group Box and the title does change. The title is only blue by default, just change the Forecolor and the blue will change too. It's just like a label.
Re: Change the Color of the Groupbox Title
Changing the ForeColor does change the title color for the Group box. It also changes the contents to the same color, but all you have to do to correct that is select the contents and change the Forecolor back to what you wanted it originally.
Thanks for all the help.
Richard