funnyusername
January 28th, 2009, 03:43 PM
Does this code look ok to you?
pictureBox1.Image = System.Drawing.Image.FromFile("..\\MyNewProject\\Resources\\Adhesive.jpg");
Here is the file path from Windows:
C:\Documents and Settings\D. Murphy\My Documents\Visual Studio 2008\Projects\Project1\MyNewProject\MyNewProject\Resources\Adhesive.jpg
I've tried about twenty variations of the file path in my command so far and can't seem to get it....
The Project Solution file is in:
C:\Documents and Settings\D. Murphy\My Documents\Visual Studio 2008\Projects\Project1\MyNewProject
pictureBox1.Image = System.Drawing.Image.FromFile("..\\MyNewProject\\Resources\\Adhesive.jpg");
Here is the file path from Windows:
C:\Documents and Settings\D. Murphy\My Documents\Visual Studio 2008\Projects\Project1\MyNewProject\MyNewProject\Resources\Adhesive.jpg
I've tried about twenty variations of the file path in my command so far and can't seem to get it....
The Project Solution file is in:
C:\Documents and Settings\D. Murphy\My Documents\Visual Studio 2008\Projects\Project1\MyNewProject