2010-07-14 7 views

Répondre

1

J'ai eu un problème similaire il y a quelque temps. Ce artical de Microsoft a été très utile: http://msdn.microsoft.com/en-us/library/system.windows.forms.picturebox.image%28VS.80%29.aspx

Surtout cette partie

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); 
    } 
+0

Je ne stocke pas le chemin de l'image, il est rempli avec octet de de tableau pour l'image. – Manish

Questions connexes