Highlight some items of a combobox

  • Thread starter Thread starter nathan.atkins
  • Start date Start date
N

nathan.atkins

I have a combobox with a list of items, and depending which one is
selected it displays data relating to the selected item. I want to
highlight some of the items in the combobox which meet certain
criteria, but i cant find any info about doing this
I have tried

Combobox.Items.Item(i).backcolor = color.red but that wont work
any ideas?
 
I have a combobox with a list of items, and depending which one is
selected it displays data relating to the selected item. I want to
highlight some of the items in the combobox which meet certain
criteria, but i cant find any info about doing this
I have tried

Combobox.Items.Item(i).backcolor = color.red but that wont work
any ideas?

Ownerdraw the combo box and then paint the needed items background colour
(fillrectangle) based upon the criteria needed?
If you use this method you need a way for the criteria to be checkable per
item in the Drawitem event though.

Chris
 
Back
Top