equivalent ImageList exists function ??

  • Thread starter Thread starter Dave Brown
  • Start date Start date
D

Dave Brown

Hi,

Can anyone tell how to see if an image exists in an imagelist by a name ?

rgds

d.
 
The short answer is - you can't. The imagelist is a collection of image
objects; there is no information stored as to whether the image originally
came from. You should just write your own manager class that keeps a
hashtable of names for images it adds to the imagelist and then ask the
manager if an image with that name has been added.
 
Back
Top