I have made an imagelist and populated it with a few images where the filename of each of the files is important.
I can generate the random images in a PictureBox when I click a button. The code is:
Me.bxPics.Image = ImgLst.Images.I tem(i)
where i is a randomly generated number. Underneath the picture box is a text box where I would like the filename of the picture to be displayed. I don't understand how this is so hard to implement as in the imagelist properties, I can see the index of each picture as well as the FileName (or Name as it is displayed)
Is this possible?
I can generate the random images in a PictureBox when I click a button. The code is:
Me.bxPics.Image = ImgLst.Images.I tem(i)
where i is a randomly generated number. Underneath the picture box is a text box where I would like the filename of the picture to be displayed. I don't understand how this is so hard to implement as in the imagelist properties, I can see the index of each picture as well as the FileName (or Name as it is displayed)
Is this possible?
Comment