setting PictureBox.Image at runtime

  • Thread starter Thread starter bonkers
  • Start date Start date
B

bonkers

I have a listView with 10 items (populated from an ImageList). When the user
clicks on an item, I want to change the image currently shown in a
PictureBox.

Using the selectedIndexChanged event... I can get the
ListView1.FocusedItem.Index... that's a good way to determine which item the
user clicked...

But how can I set the PictureBox.Image? Say I have copied several images
(.jpg) to the target device... how do I "read" one in? Or must I use an
ImageList and refer to an item in it?

Thanks,
Rissa
 
Hi,

PictureBox1.Image = imgLarge.Images.Item(lvItems.FocusedItem.ImageIndex)



Ken
 
Back
Top