listBox row colors...

  • Thread starter Thread starter trint
  • Start date Start date
T

trint

Can I make my rows in listBox1 alternate colors (I'm wanting to group
data)?
If so, how? If not, what type of box can I use to do this?
Thanks,
Trint
 
Hi trint,

With ListBox you set the DrawMode to either of the OwnerDrawn ones and
handle the DrawItem event. Check the DrawItemEventArgs.State to determine
if the item is selected etc.
 
Back
Top