RadGroupBox border problem

6 posts, 0 answers
  1. Shaihan
    Shaihan avatar
    12 posts
    Member since:
    Jan 2010

    Posted 17 Mar 2010 Link to this post

    RadGroupBox shows a white border around the inner controls. i don't want the control to show the border. i have tried to find different ways but couldn't do it. here is a screenshot. you can see the white border here which i want to be removed.

    is there any way to do it?
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 18 Mar 2010 Link to this post

    Hi Shaihan,

    This is not a white border, but it is the default background of RadGroupBox for the ControlDefault theme. You need to set the back ground color to Transparent:

    ((FillPrimitive)this.radGroupBox1.GroupBoxElement.Content.Children[0]).BackColor = Color.Transparent;

    Sincerely yours,
    Victor
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Shaihan
    Shaihan avatar
    12 posts
    Member since:
    Jan 2010

    Posted 19 Mar 2010 Link to this post

    thanks.

    is there any way to change the color of GroupBox background in the ControlDefault theme once so that it applies to all the GroupBox rather than changing for each of the GroupBox?
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 24 Mar 2010 Link to this post

    Yes Shaihan, you can change the ControlDefault theme. Just load RadGroupBox in Visual Style Builder and then change the colors of the GroupBoxContent >> FillPrimitive. Set the ThemeName of the theme to ControlDefault and save it. Further, load the theme in your project and this will replace the original ControlDefault theme.

    All the best,
    Nikolay
    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.
  6. John
    John avatar
    15 posts
    Member since:
    Nov 2013

    Posted 30 Nov 2013 Link to this post

    Hello Support Team!
    I copied/paste the code you said.
    But doesn't work and sends me error.
    Would you please take a new look and help?
    Thank you.
  7. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 04 Dec 2013 Link to this post

    Hello John,

    In our latest releases the background color of RadGroupBox is Transparent by default, so there is no need to use the code snippet provided by Victor if you want to have Transparent background. Still, if you, let's say, want to have a Red color for the background, the following code snippet should work without any issues in our latest release Q3 2013 SP1 (v2013.3.1127):
    ((FillPrimitive)this.radGroupBox1.GroupBoxElement.Content.Children[0]).BackColor = Color.Red;

    If you continue to experience any issues with this scenario, please open a new support ticket and send us a sample project that can demonstrate them. This will allow me to provide you with further assistance.

    Regards,
    Nikolay
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready