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

Threaded View

  1. #1
    Join Date
    Jul 2005
    Posts
    23

    Question Accessing files in project folder (solved)

    Ive spent about an hour googling around looking for this solution. Perhaps I am not wording what I want correctly.

    Ive added .png files to a subfolder in my project folder. How do I access those files in the code??

    Im trying to implement: Image myImage = Image.FromFile(@"project_path\CARDS\spade.png");

    What are their paths from the project folder, it cant just be from my machine, when it comes time to package the project, those file paths obviously need to stay the same.

    Its probably so simple, I just cant figure it out tho.
    Last edited by mycomputerfund; March 9th, 2006 at 02:47 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