ImageList images and name

  • Thread starter Thread starter Mika M
  • Start date Start date
M

Mika M

Hi!

I'm wondering is it possible to give names for the images in the
imagelist somehow, and retrieve those images when needed by using code
like pic.Image = ImageList1.Images("Save") instead of pic.Image =
ImageList1.Images(1) ?

I'd like to retrieve images of the imagelist by name instead of image
index number because if order of those images are changed then index of
image may be no more same as referenced in the code, so name would be
better to use in this case.

I think something like this was possible to do with VB6 and earlier
versions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top