ComboBox DropDownStyle DropDownList: Change BackColor WinForms

I am making one application where I highlight currently focused controls.
For TextBoxI use the property BackColor.

But in the case ComboBoxwith DropDownStyle = DropDownList, BackColorit seems, does not release it.

Any suggestion (border, etc.) on how I can make the controls selected sequentially.

+3
source share
2 answers

As Renius said, you will need to change the DrawMode properties.

In particular, changing DrawMode to OwnerDrawFixed will allow you to specify BackColor.

System.DrawMode

. .

OwnerDrawFixed. .

OwnerDrawVariable. .

. System.Windows.Forms.DrawMode.

+2

FlatStyle DrawMode. . , :)

+1

All Articles