Jun 22, 2005 #1 cmz21 Programmer May 5, 2005 110 US i keep getting the error "Imagelist must be initialized before it can be used" Any idea why this is happening or how I fix it? Thanks cmz
i keep getting the error "Imagelist must be initialized before it can be used" Any idea why this is happening or how I fix it? Thanks cmz
Jun 22, 2005 #2 HarleyQuinn Programmer Jan 15, 2003 4,769 GB You have to set the .ImageList property to the name of your imagelist before you call images from it e.g. Code: Toolbar1.ImageList = MyImageList Hope this helps HarleyQuinn --------------------------------- Help us to help you, read FAQ222-2244 before posting. Upvote 0 Downvote
You have to set the .ImageList property to the name of your imagelist before you call images from it e.g. Code: Toolbar1.ImageList = MyImageList Hope this helps HarleyQuinn --------------------------------- Help us to help you, read FAQ222-2244 before posting.
Jun 22, 2005 #3 HarleyQuinn Programmer Jan 15, 2003 4,769 GB You don't have to set it everytime you want to reference it in the Sub. Just the once before you try and use any of the images within it. Hope this helps HarleyQuinn --------------------------------- Help us to help you, read FAQ222-2244 before posting. Upvote 0 Downvote
You don't have to set it everytime you want to reference it in the Sub. Just the once before you try and use any of the images within it. Hope this helps HarleyQuinn --------------------------------- Help us to help you, read FAQ222-2244 before posting.
Jun 22, 2005 Thread starter #4 cmz21 Programmer May 5, 2005 110 US I figured it out....I had to link it to a treeview on my form. Thanks anyway cmz Upvote 0 Downvote
Jun 22, 2005 #5 HarleyQuinn Programmer Jan 15, 2003 4,769 GB How did you link it to the treeview? HarleyQuinn --------------------------------- Help us to help you, read FAQ222-2244 before posting. Upvote 0 Downvote
How did you link it to the treeview? HarleyQuinn --------------------------------- Help us to help you, read FAQ222-2244 before posting.
Jun 22, 2005 Thread starter #6 cmz21 Programmer May 5, 2005 110 US I selected the treeview in my form, clicked the elipses next to 'custom' in the properties box, and set the imagelist drop down box to my imagelist. Upvote 0 Downvote
I selected the treeview in my form, clicked the elipses next to 'custom' in the properties box, and set the imagelist drop down box to my imagelist.