Results 1 to 8 of 8

Thread: [RESOLVED] Change the Color of the Groupbox Title

  1. #1

    Thread Starter
    Lively Member RichardKnox's Avatar
    Join Date
    Jul 2009
    Location
    Southern Michigan
    Posts
    89

    Resolved [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

  2. #2
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: Change the Color of the Groupbox Title

    Change the GroupBox.ForeColor property

  3. #3

    Thread Starter
    Lively Member RichardKnox's Avatar
    Join Date
    Jul 2009
    Location
    Southern Michigan
    Posts
    89

    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

  4. #4
    Fanatic Member Vectris's Avatar
    Join Date
    Dec 2008
    Location
    USA
    Posts
    941

    Re: Change the Color of the Groupbox Title

    Double post because of lag.
    Last edited by Vectris; Jul 14th, 2009 at 09:55 PM.
    If your problem is solved, click the Thread Tools button at the top and mark your topic as Resolved!

    If someone helped you out, click the button on their post and leave them a comment to let them know they did a good job

    __________________
    My Vb.Net CodeBank Submissions:
    Microsoft Calculator Clone
    Custom TextBox Restrictions
    Get the Text inbetween HTML Tags (or two words)

  5. #5
    Fanatic Member Vectris's Avatar
    Join Date
    Dec 2008
    Location
    USA
    Posts
    941

    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.
    If your problem is solved, click the Thread Tools button at the top and mark your topic as Resolved!

    If someone helped you out, click the button on their post and leave them a comment to let them know they did a good job

    __________________
    My Vb.Net CodeBank Submissions:
    Microsoft Calculator Clone
    Custom TextBox Restrictions
    Get the Text inbetween HTML Tags (or two words)

  6. #6
    New Member
    Join Date
    Jul 2009
    Posts
    11

    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.

  7. #7
    Fanatic Member Vectris's Avatar
    Join Date
    Dec 2008
    Location
    USA
    Posts
    941

    Re: Change the Color of the Groupbox Title

    Quote Originally Posted by SwiftSeller View Post
    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.
    If your problem is solved, click the Thread Tools button at the top and mark your topic as Resolved!

    If someone helped you out, click the button on their post and leave them a comment to let them know they did a good job

    __________________
    My Vb.Net CodeBank Submissions:
    Microsoft Calculator Clone
    Custom TextBox Restrictions
    Get the Text inbetween HTML Tags (or two words)

  8. #8

    Thread Starter
    Lively Member RichardKnox's Avatar
    Join Date
    Jul 2009
    Location
    Southern Michigan
    Posts
    89

    Talking 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
  •  



Click Here to Expand Forum to Full Width