sarika sarikaa

sarika sarikaa

  • NA
  • 60
  • 8.4k

show image in picturebox from project folder

Apr 29 2018 2:35 AM
It faild to load image in picturebox when i m using this code:
 
pictureBox1.Image = Image.FromFile(@"C:\Users\Admin\source\repos\New folder\Software of TE\Software of TE\Images\"+ str);
 
But When i m using this code Image load Successfully:
 
pictureBox1.Image = Image.FromFile(@"C: /Users/Admin/source/repos/Software of TE/Software of TE/images/Washer.Jpg");
 
So please give me the solution to load all images from folder.

Answers (7)