Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Panels, Labels, GroupBox > How to change the border color of RadGroupBox and ContentPanel of tabItem

Not answered How to change the border color of RadGroupBox and ContentPanel of tabItem

Feed from this thread
  • Posted on Aug 26, 2010 (permalink)

    Hi,

    I tried several ways to change the border colors of both radGroupBox and ContentPanel of tabItem, but no luck.

    Actually I would like to put the hexadecimal color "#484042" which turns out to be light gray for the borders. The following is the code I wrote for ContentPanel's border. I dont know if that is the way to go.

    ((Telerik.WinControls.Primitives.

    BorderPrimitive)(this.tabItem2.GetChildAt(1))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(64)))), ((int)(((byte)(66))))); ---> Please guide if these colors make up "#484042" since the designer generated those ARGB values when I put in the above hex value.

    Also, I am having a weird problem with top border of the ContentPanel. The left, right and bottom border lines appear and are visible during run time, but for some reason I dont see the upper/top border for tabItem's ContentPanel.

    Kindly help

    Thanks,
    Jayanthi
    tjayanthi@dsionline.biz

    Reply

  • Jack Jack admin's avatar

    Posted on Sep 1, 2010 (permalink)

    Hello Gary,

    Thank you for contacting us.
     
    Regarding your questions:

    1. Please use the following code in order to customize RadGroupBox border:

    BorderPrimitive border= (BorderPrimitive)radGroupBox1.GroupBoxElement.Content.Children[1];
    border.Width = 5;
    border.BoxStyle = BorderBoxStyle.SingleBorder;
    border.GradientStyle = GradientStyles.Solid;
    border.ForeColor = Color.Red;

    2.
    This is not easy when using RadTabStrip. That is why we replaced this control with RadPageView in our latest release. I recommend that you try our latest release. Here is how you can change the content panel background in the new  version:
    this.radPageViewPage1.BackColor = Color.Red;

    Should you have any additional questions, please write back.

     

    All the best,
    Jack
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Panels, Labels, GroupBox > How to change the border color of RadGroupBox and ContentPanel of tabItem
Related resources for "How to change the border color of RadGroupBox and ContentPanel of tabItem"

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