private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
//if (pictureBox1.Image != null)
// try
// {
pictureBox1.Image = System.Drawing.Image.FromFile("C:/Users/Garrith-Super-PC/Desktop/New folder/" + listBox1.SelectedItem.ToString());
//}
//catch (NullReferenceException)
//{
// MessageBox.Show("The image box is empty!");
//}
}
I tryed to handle it myself as you can see but that didnt work. Any help would be great thanks.

New Topic/Question
Reply




MultiQuote





|