Different colored items in a ComboBox

british87

New member
Joined
Jul 27, 2008
Messages
3
Programming Experience
Beginner
Hi everyone,

I need a ComboBox control in a project I'm working but with each element being a different color, for example:

Item 1
Item 2
etc...

Or perhaps something like:

--Item 1
--Item 2
--etc...

I could make my own control, but I would rather not, so I wondered first if perhaps someone knew of a way to achieve this sort of functionality with a ComboBox, or a close relative.

Thanks in advance!

british
 
Set DrawMode to OwnerDraw and handle the DrawItem event.
 
Back
Top