private void lstProducts_SelectedIndexChanged(object sender, EventArgs e) { //---start with 1 item and clear the previous sale txtQuantity.Text = "1"; lblTax.Text = ""; lblTotal.Text = ""; //---make sure you understand what I am doing here in this section string itemChosen = lstProducts.Text.Substring(0,10).Trim(); string itemPrice = lstProducts.Text.Substring(20,15).Trim(); string itemPhoto = lstProducts.Text.Substring(40).Trim(); txtItem.Text = itemChosen; txtPrice.Text = itemPrice; picThumbs.Image = System.Drawing.Image.FromFile("..\\..\\images\\" + itemPhoto); }