I'm trying to change the dispaly color of a ComboBox
when the DropdownStyle
property is DropdownList
. When the property is changed to Dropdown
from DropdownList
the color changes.
How can I control the view color of the dropdown boxes ?
Thanks
You can set
FlatStyle
property toPopup
. This way the back color will use in bothDropDown
andDropDownList
mode.If you don't like flat style or you need more customization on rendering of
ComboBox
, you can use an owner-drawnComboBox
. For example you can setDrawMode
property toOwnerDrawFixed
and handleDrawItem
event and draw the combo box based on your logic.