tags:

views:

15

answers:

1

Hi,

i have one listview in which i have stored images, now for my slide show i want this images to picture box. but not getting exact way to get images from the listview.

can anybody has some idea about this ?

thanks in advance.

+1  A: 

I had a similar problem some while ago. This artical from Microsoft was very helpfull: http://msdn.microsoft.com/en-us/library/system.windows.forms.picturebox.image%28VS.80%29.aspx

Especially this part

   ListViewItem selection = ListView1.GetItemAt(e.X, e.Y);

   // If the user selects an item in the ListView, display
   // the image in the PictureBox.
   if (selection != null)
   {
        PictureBox1.Image = System.Drawing.Image.FromFile(
            selection.SubItems[1].Text);
   }
BaumS
i am not storing the image path, it is fill with byte of of array for the Image.
Manish