i’m trying to load image from local disk, and it’s working. But my problem is that i’d like to check if image is available in folder, and if not – then MessageBox.Show(“No image!”);
Loading image:
Bitmap bitmap1 = new Bitmap(@"Documentation\\Pictures\\"+table[8]+".jpg");
pictureBox.Image=bitmap1;
You could use the File.Exists method to check whether a given file exists: