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

How to change dropdown backcolor?

2 Answers 311 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Sydney
Top achievements
Rank 1
Sydney asked on 01 May 2012, 07:43 PM
We have several raddropdown controls on a form, and they are set to use Windows 7 theme. 
Some of these need to have a different background color to indicate that they are required. 

We have tried
1.  setting the BackColor property in the Properties window - does not change the color. 
2.  setting it in the code (rddVendor.BackColor=color.yellow)....does not change the color. 

I'm sure we are missing something rather simple....can anyone point us in the right direction? 
Other info....VS 2010, vb.net, framework 4.03xxxx, Telerik Q1 2012 SP1

Thanks.

UPDATE.....using the following lines of code, we can get a fully colored background.....but if there is a way to fully color the background with only one line, that would be preferrable.  Since BackColor is a property of the control, I would expect that to do it....

rddVendor.DropDownListElement.TextBox.BackColor = Color.Yellow
rddVendor.DropDownListElement.TextBox.Fill.BackColor = Color.Yello

2 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 02 May 2012, 12:08 PM
Hello Sydney, 

Please see this forum answer that will answer your question. 
Regards, 
Richard
0
Stefan
Telerik team
answered on 04 May 2012, 02:54 PM
I am marking Richards post as answer. Please refer to the article mentioned. 

Let us know if you have any other questions.
 
Regards,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
DropDownList
Asked by
Sydney
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or