-2
String^ path = "C:\Users\Abu Bakr\Pictures\Photoshop\Thumbnail for zactonia.png";
        Picture->Image = System::Drawing::Image::FromFile(path);

I am trying to make a slideshow program. This is my problem I cannot put the image inside the picture box.

Some programmer dude
  • 400,186
  • 35
  • 402
  • 621

1 Answers1

0

Try to escape the '\':

String^ path = "C:\\Users\\Abu Bakr\\Pictures\Photoshop\\Thumbnail for zactonia.png";
        Picture->Image = System::Drawing::Image::FromFile(path);
Felice Pollano
  • 32,832
  • 9
  • 75
  • 115