7
Answers

show image in picturebox from project folder

sarika sarikaa

sarika sarikaa

6y
1.4k
1
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)