CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Jul 2008
    Posts
    169

    [RESOLVED] FileNotFoundException

    Does this code look ok to you?

    Code:
    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
    Last edited by funnyusername; January 28th, 2009 at 04:46 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured