Valhalla Legends Archive

Programming => General Programming => Topic started by: CoNfUzEd on February 19, 2006, 07:49 PM

Title: Initializing ListViews
Post by: CoNfUzEd on February 19, 2006, 07:49 PM
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?
Title: Re: Initializing ListViews
Post by: Ringo on February 19, 2006, 08:44 PM
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
Title: Re: Initializing ListViews
Post by: CoNfUzEd on February 19, 2006, 10:37 PM
Yes this did help me alot thankyou.