problem of pictureBox1->Image->FromFile

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
This code don't affich the image

pictureBox1->Image->FromFile("c:\\image.jpg");

c:\image.jpg exists.
Please, can you help me?

Thanks
 
tlemcenvisit said:
Hello
This code don't affich the image

pictureBox1->Image->FromFile("c:\\image.jpg");

c:\image.jpg exists.
Please, can you help me?

Thanks

FromFile is a static method and returns an image. So you're supposed to
call it like this:
pictureBox1->Image = System::Drawing::Image::FomFile("c:\\image.jpg");

Tom
 
Back
Top