I have a little problem with a combobox.
I need to put the background color of a combobox in red when there is a value in it.
I'm using the following code :
if (!string.IsNullOrEmpty(ComboTransmis.Text))
ComboTransmis.BackColor = Color.OrangeRed;
else
ComboTransmis.BackColor = Color.White;
But the result is this :
There is only text which have the backcolor, I need all element have it and I have no idea how to do it.
If anyone have an idea ?
Thank you in advance