Author | Message | Time |
---|---|---|
haZe | Everytime I try to add the icon, here is what I get: - Runtime Error '35613': ImageList must be intitialized before it can be used. - My code is as follows [code] Private Sub Form_Load() imgcmb.ComboItems.Clear imgcmb.ComboItems.Add 1, , "Star: bw", 9 End Sub [/code] What am I doing wrong? :-/ | March 19, 2003, 6:09 PM |
Grok | Breathing. imgcmb.ImageList = ImageList1 where "ImageList1" is the name of an imagelist you put on the form and filled with appropriate images. | March 19, 2003, 6:39 PM |
Zakath | Or I suppose you could use API functions to create one...not sure why you'd want to do that when you can just drag and drop, though. | March 20, 2003, 12:53 AM |
Camel | [quote]imgcmb.ImageList = ImageList1[/quote] alternatively, go in to the customize page for the listview and set *all* of the imagelist dropdowns to something (if even one of them isn't set, it'll give you that error as soon as you try to add an item with an icon) | March 21, 2003, 3:04 PM |