tags:

views:

36

answers:

1

I've got a dropdown box with some items in it that are more popular than others, and I'd like those to have a different background colour (say, Color.Yellow) when the combobox is expanded. I see BackColor but is there a way to apply background colour to just a single item?

EDIT: Thanks to Astander's lead, here's how I solved it:

    Dim item = CType(e.Item, ImageComboBoxItem)
    If item.Value.Popular Then
        e.Appearance.BackColor = Color.Yellow
    End If
+1  A: 

Have a look at

ComboBox.DrawItem Event

astander
Thanks for the lead! I've outlined what I did in the question, but I consider your answer "the answer" :)
calico-cat