imagePath="D:\\Temp\\name1.jpg"; pictureBox1.Load(imagePath);
Error: Could not find file 'D:\Temp\name1.jpg'.
string imagePath = "D:\\Temp\\name1.jpg"; if(System.IO.File.Exists(imagePath)) pictureBox1.Load(imagePath);
string Imgpath= @"D:\temp\name1.jpg";
try { pictureBox1.Load(@"C:\Documents and Settings\Administrator\Desktop\NewFolder\qqq.jpg"); } catch (Exception ex) { MessageBox.Show(ex.Message); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)