This is a migrated thread and some comments may be shown as answers.

Transperent label background

4 Answers 204 Views
Label
This is a migrated thread and some comments may be shown as answers.
Roberto Wenzel
Top achievements
Rank 2
Roberto Wenzel asked on 17 Dec 2010, 06:52 PM
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

4 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 17 Dec 2010, 11:14 PM
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
0
Roberto Wenzel
Top achievements
Rank 2
answered on 18 Dec 2010, 10:10 AM
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
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 18 Dec 2010, 06:58 PM
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
0
Richard Slade
Top achievements
Rank 2
answered on 20 Dec 2010, 01:52 PM
hello Roberto,

Did this help? If so please remember to mark as answer
Thanks
Richard
Tags
Label
Asked by
Roberto Wenzel
Top achievements
Rank 2
Answers by
Richard Slade
Top achievements
Rank 2
Roberto Wenzel
Top achievements
Rank 2
Share this question
or