I need to alternate the color of the items in my CheckedListBox
but "alternatingColors" is not a property of CheckedListBox
.
How do I go about making the item's colors alternate?
I need to alternate the color of the items in my CheckedListBox
but "alternatingColors" is not a property of CheckedListBox
.
How do I go about making the item's colors alternate?
The
OnDrawItem
event is inaccessible by default, but if you derive a new control based onCheckedListBox
, then you can override the base event.It'll alternate between white and green by default. Make adjustments in the Properties panel at design time, or during runtime.