tir na nog 2

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



Re: Visual Basic Express Edition adding folder to project

Lars Breiter

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




Re: Visual Basic Express Edition adding folder to project

tir na nog 2

thanks lars..

I will try that

cheers