3
Answers

changing BackGround Color of ComboBox

Using C#, is it possible to change the BackGround color of a comboBox?

I tried to use this one

cmbBox1 = the namespace of the combobox

 

         cmbBox1.BackgroundColor = Color.Red;

 

I't wont work.

 

Is there any way to put some new codes so I could change its backcolor?

(Without editing stuff from the properties window)

 

Also,

 

 

from the comboBox, i have this two item: red and blue. when i clicked the button 'Change Color' (btnColor), the button should change it's background color. is it possible to use if or switch statement? how?

 

 

Answers (3)