|
-
Jul 14th, 2009, 11:22 AM
#1
Thread Starter
Lively Member
[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
-
Jul 14th, 2009, 11:45 AM
#2
Re: Change the Color of the Groupbox Title
Change the GroupBox.ForeColor property
-
Jul 14th, 2009, 12:11 PM
#3
Thread Starter
Lively Member
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
-
Jul 14th, 2009, 12:31 PM
#4
Re: Change the Color of the Groupbox Title
Double post because of lag.
Last edited by Vectris; Jul 14th, 2009 at 09:55 PM.
-
Jul 14th, 2009, 12:32 PM
#5
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.
-
Jul 14th, 2009, 06:37 PM
#6
New Member
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.
-
Jul 14th, 2009, 09:58 PM
#7
Re: Change the Color of the Groupbox Title
 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.
-
Jul 18th, 2009, 01:52 PM
#8
Thread Starter
Lively Member
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|