Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Panels, Labels, GroupBox > radGroupBox Header text color

Not answered radGroupBox Header text color

Feed from this thread
  • Steven Randlett avatar

    Posted on May 6, 2011 (permalink)

    I am a bit confused here.  What I want to do is change the color of the text in the header of a group box.  Here's what I have figured out so far:

    Dim

     

     

    RE As RadElement = DirectCast(Me.rgbPharmacyInformation.RootElement.Children(0).Children(1).
                                                                        Children(2).Children(1),
    RadElement)
    The zeroth child of the root element is the RadGroupBoxElement.
    The First child of the RadGroupBoxElement is the GroupBoxHeader element.
    The second child of the GroupBoxHesder elelemnt is the ImageAndTextLayoutPanel element.
    The first child of the ImageAndTextLayoutPanel element is text. 

    Looking at the property inspector in VS2010, I see properties for this element and the property I would like to change is the Fioreground color.  But what do I cast the "text" element as (In the above code, the "text" can be successfully cast to a RadElement)?  How can I get to this property?   

    Anybody's assistance would be appreciated!  Thank you for your time!

     

    Reply

  • Stefan Stefan admin's avatar

    Posted on May 10, 2011 (permalink)

    Hi Steven,

    Thank you for writing.

    You can change the color of the header text in RadGroupBox by modifying the ForeColor property of the Header element. Here is how you can access it:
    radGroupBox1.GroupBoxElement.Header.ForeColor = Color.Red;

    I hope the provided information addresses your question. Should you have any other questions, do not hesitate to contact us.
     
    Regards,
    Stefan
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Panels, Labels, GroupBox > radGroupBox Header text color
Related resources for "radGroupBox Header text color"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]