• Welcome to Valhalla Legends Archive.
 

Initializing ListViews

Started by CoNfUzEd, February 19, 2006, 07:49 PM

Previous topic - Next topic

CoNfUzEd

Every time I try to use icons in a listview I get an error when it's suppose to add the icon saying "Imagelist must be initialized before it can be used.". Could someone please tell me how I would initialize a listview?

Ringo

Hi
Add a image list to your project and put some images/icons in it.
Click on a listview you would like to link the imagelist to and click the custom tab in the properties window.
Here you can link a image lists to small icons for example, and simply use the index of the icon you would like to use in the imagelist when you .listitems.add

hope this helps

CoNfUzEd

Yes this did help me alot thankyou.