how to extend this code: ListView in vsReport mode colouring of Items and rows to draw small icons?
and why do I have the error 'List index out of bounds (2)' if I have 3 columns?
Thanks!
how to extend this code: ListView in vsReport mode colouring of Items and rows to draw small icons?
and why do I have the error 'List index out of bounds (2)' if I have 3 columns?
Thanks!
There are many ways to draw the icons, depending on where they come frome (a file, a resource, a system icon, etc.) and depending on if there should be a single icon for all items or if every item has its own icon. Anyhow, the general idea should be clear from this extended version of the code in the previous question (and I have also fixed the out-of-bounds bug...):