Results 1 to 4 of 4

Thread: Reference images in an image list

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Houston, TX
    Posts
    342

    Reference images in an image list

    How do you tag the images in an image list? I am loading about 10 random images and I need some way to reference them. There is no tag property and the class is not inheritable so I don't know of any other way to do this.

    Any ideas?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Huh? Just reference them by Index number.

    dim img as Image=ImageList1.Images(0)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Houston, TX
    Posts
    342
    Sorry, I should have been more specific. I need a text reference that I can assign the image when it's loaded into the ImageList. The images order may change depending on how the user loads the program so I can't rely on the same image being at the same index every time so I need some way of identifying that image 0 = "AddGlyph", Image 1="EditGlyph"...etc

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Use a hashtable to link the name and index when they are added to the ImageList.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width