Highlight some items of a combobox

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?
 
C

Chris

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top