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.
 

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

Back
Top