In some forums I have seen developers wanted to change the
selected color (usually Blue) of ComboBox to normal background color. I would like to add the code for following.
The method used for accomplishing this is Custom Drawing.
Create a new windows application and place a
combo box on the form
Set the property DrawMode to OwnerDrawVariable
On the combo box DrawItem event, add the
private void comboBox1_DrawItem(object
sender, DrawItemEventArgs e)
combo = sender as ComboBox;
e.Graphics.DrawString(combo.Items[e.Index].ToString(), e.Font, new
You can add some test data items to the combox and run the
Now you can see that eventhough the mouse is on the dropdown
list area the highlight color is not there.