Transperent label background

5 posts, 1 answers
  1. Roberto Wenzel
    Roberto Wenzel avatar
    41 posts
    Member since:
    Sep 2012

    Posted 17 Dec 2010 Link to this post

    Hello,
    I was trying to set a transparent background to a RadLabel. No matter which setting I try, I still have a solid background in that label, which is the default light blue colour (233; 240; 249).
    Which is the magic key I have to turn?
    Thank you for any help.
    Roberto
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 17 Dec 2010 Link to this post

    Hello Roberto,

    Which version of the radControls are you using? In the latest version (2010 Q3 SP1) the RadLabel maches it's back colour to the back colour of the control it is on. So, a form with a back colour of control, and adding a RadLabel will automatically inherit the same back colour.

    You should in any case be able to just change the BackColor property in the designer.
    Hope that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Roberto Wenzel
    Roberto Wenzel avatar
    41 posts
    Member since:
    Sep 2012

    Posted 18 Dec 2010 Link to this post

    Hello Richard,
    thank you for your reply.
    I just upgraded from RadControls_WinForms_2010_3_10_1109 to RadControls_WinForms_2010_3_10_1215 but that did not solve my problem, if I dare to speak of a "problem".
    I assumed that the background of the label would be transparent if I set the appropriate value to "transparent". But there is always a background color (namely the color of the parent control as you said).
    To demonstrate my issue: I have two labels one above a TextBox and one above a DropDownList control. The labels overlap the TextBox and the DropDownList controls a little bit. As the DropDownList control is a bit higher the labels background is visible at the edge.
    Is there any way to set a real transparent background?
    I am confused....

    Cheers Roberto
  5. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 18 Dec 2010 Link to this post

    Hi Roberto,

    Ah, ok, I see your issue. Unfortunatly this won't be possible as far as I know. The RadLabel to my knowledge works in the same way as the MS one, and is transparent, but only to it's parent control
    Regards
    Richard
  6. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 20 Dec 2010 Link to this post

    hello Roberto,

    Did this help? If so please remember to mark as answer
    Thanks
    Richard
Back to Top
UI for WinForms is Visual Studio 2017 Ready