Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Accessing an Imagelist in VB.NET

Accessing an Imagelist in VB.NET

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasetutorial
3 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dgwood
    wrote on last edited by
    #1

    I am relatively new to VB and I'm trying to figure out how to reference the images in an imagelist by using the index of the image within the list. I want to be able to take an image from the imagelist and place it in a picture box by using the index. I cannot figure out the syntax for this code. DGW

    D 1 Reply Last reply
    0
    • D dgwood

      I am relatively new to VB and I'm trying to figure out how to reference the images in an imagelist by using the index of the image within the list. I want to be able to take an image from the imagelist and place it in a picture box by using the index. I cannot figure out the syntax for this code. DGW

      D Offline
      D Offline
      Danny Blanchard
      wrote on last edited by
      #2

      Should look like this: MyPictureBox.Image = MyImageList.Images.Item(Index) Hope that helps!! Daniel E. Blanchard

      D 1 Reply Last reply
      0
      • D Danny Blanchard

        Should look like this: MyPictureBox.Image = MyImageList.Images.Item(Index) Hope that helps!! Daniel E. Blanchard

        D Offline
        D Offline
        dgwood
        wrote on last edited by
        #3

        Thanks much - that works. The images are a bit blurry but they are at least showing up now. DGW

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups