> > How do I know what to set imageIndex to?
tn.ImageIndex = imageList.Images.Count-1
This is what I do
tn.ImageIndex = imageList.Images.IndexOf(myImage)
But I realized I didn't know a general way, like this
But is myimage simply the Icon I added to the list???
THANKS
If I want to add Images to an ImageList in some random fashion
Using it with a TreeView for a Windows Explorer like app. Each time I open
a directory I get the icons for the files and add them to the Imaglist.
However, I don't like the idea that the list keeps growing. If myimage above
is really just the icon I can use the above to see if it is already in the
list. Comment?
Does the imagelist actually stores the image?
If so, do you think it has to compare the bits to find the index given an
icon?
Thanks again