Checkedlistbox and colored Items

  • Thread starter Thread starter mphanke
  • Start date Start date
M

mphanke

Hi,

what is the way to go for adding colored items to the checkedlistbox
control?? I can't find any solution eventhough I'm browsing the web for
hours now...

I actually planned to overwrite the DrawItem - Func, but I can't figure
out how to access the Event Handler..

Any help is apreciated,

Regards,

Martin
 
mphanke said:
what is the way to go for adding colored items to the checkedlistbox
control?? I can't find any solution eventhough I'm browsing the web for
hours now...

You may try to use ListView instead of CheckedListBox. Put ListView on a
form, change View to List and set CheckBoxes to True. Then when adding new
ListViewItem You can set its color through BackColor property.

HTH

RGDS PSG
 
Back
Top