T
Terry
This seems like something that shouldn't be very difficult. But, how is one
supposed to get the index of an image in an image list from the reference of
the image?
I'm using VS .NET 2003 with .NET 1.1 and it says the "IndexOf()" method of
the ImageList.ImageCollection class is "Not supported" and does in fact
throw a "NotSupportedException" if I try to call it.
Since almost every control that uses an ImageList required the *index* of
the image, it seems kind of stupid to remove the "IndexOf" method. With
that gone, what are you supposed to do? Keep an index counter going as
images are added to the image list?
supposed to get the index of an image in an image list from the reference of
the image?
I'm using VS .NET 2003 with .NET 1.1 and it says the "IndexOf()" method of
the ImageList.ImageCollection class is "Not supported" and does in fact
throw a "NotSupportedException" if I try to call it.
Since almost every control that uses an ImageList required the *index* of
the image, it seems kind of stupid to remove the "IndexOf" method. With
that gone, what are you supposed to do? Keep an index counter going as
images are added to the image list?