Hi!. I'm using visual basic 2005, and I wanted to apply a code written for visual basic 2008 wich I know it works. The code is the following:
picturebox1.image=System.drawing.Image.Fromfile("c:\vb08sbs\chap3\Calcultr")
where calculator is a jpeg file.
Anyway, that code allows to load a picture in the object picturebox1 from the file path c:\vb08sbs\chap3\Calcultr.
every time I run this code in the visual basic 2005 IDE, I get a compiler error wich keeps the program to show me the picture, though I don't get any errors after I type the program statement into the form1.vb
Please!, I would like you to show me the equivalent code for visual basic 2005.
I Thank you in advance!