locked
adding folder to project RRS feed

  • Question

  • hi all

    if I add a folder to my project....eg....pic folder

    how do I add it to my project deployment setup..

     

    how do I access it in code....what would the path be....

    so as to be accessible on any pc....

    somethin like...eg ...if picturebox1 image is stored in the pic folder

    picturebox1.mage = Image.FromFile("my.application.pic folder")

     

    I am trying to add my own folder because the my.resources folder is unpredictable.....

    keep getting....cannot find resource....when it is there..

    I dont like this add resource thing...it keeps messin up

     

    hope I have explained enough

    thanks

    tir na nog

    Sunday, August 5, 2007 7:42 PM

Answers

  • In your Deployment Project / Filesystem just add a new Folder. This will be create during install. And in your Application you can access just like this:

    ...... = Image.FromFile(Application.StartpPath & "\YourPicFolder\YourPicHer.jpg")

    This should do it
    Monday, August 6, 2007 9:40 AM

All replies

  • In your Deployment Project / Filesystem just add a new Folder. This will be create during install. And in your Application you can access just like this:

    ...... = Image.FromFile(Application.StartpPath & "\YourPicFolder\YourPicHer.jpg")

    This should do it
    Monday, August 6, 2007 9:40 AM
  • thanks lars..

    I will try that

    cheers

    Monday, August 6, 2007 12:39 PM