how to retrieve images by using listview in c#

Oct 9 2015 1:49 PM
hi...
 
string sql = "Select ID,make,model,fueltype,transmission,drivetrain,price from details"; ;
MySqlConnection cnn = new MySqlConnection(con);
cnn.Open();
MySqlCommand cmd = new MySqlCommand(sql, cnn);
MySqlDataReader Reader = cmd.ExecuteReader();
listView1.Items.Clear();
while (Reader.Read())
{
ListViewItem lv = new ListViewItem(Reader.GetString(0));
lv.SubItems.Add(Reader.GetString(1));
lv.SubItems.Add(Reader.GetString(2));
lv.SubItems.Add(Reader.GetString(3));
lv.SubItems.Add(Reader.GetString(4));
lv.SubItems.Add(Reader.GetString(5));
lv.SubItems.Add(Reader.GetString(6));
listView1.Items.Add(lv);
}
Reader.Close();
cnn.Close();
 
so far this is my code for getting info on the listview my problem is how to get the image in picturebox by clicking info in lisview  pls help as soon as you can i need it badly  

Answers (2)