I have some images stored in a folder:
C:\MyPrograms\VisualStudio\BirdPrograms\BirdTouchScreenBasic\BirdTouchScreenBasic\pigeonImages
I plan on using this program on a different computer to which I am creating the program.
I have an array of the images in a List<Image>
Is there a way to load the image from a relative path instead of an absolute path?
ie. instead of
Image.FromFile("C:/MyPrograms/VisualStudio/BirdPrograms/BirdTouchScreenBasic/BirdTouchScreenBasic/pigeonImages/pigeon5.png");
I could just write:
Image.FromFile("./pigeonImages/pigeon5.png");
Am I wrong in assuming that the file Visual Basic uses for running the program is in the top folder with the pigeonImages folder one folder down.
So on a command line I should be able to type:
C:\BirdTouchScreenBasic> cd pigeonImages