File Location Code
Posted on 2006-10-25
What code would I use if I wanted a picturebox to be populated with image that by default should be in the following path:
C:\Program Files\Application X\Images
But lets say the user installs the program to
C:\Program Files\Application B\Images
I guess what I am trying to ask is what code can i use so that no matter where the user installe the program the image file is always being pulled one level below the root application?
I have been play around with the following code and I am stilll having issues with it.
ResultantImage.Image = Image.FromFile(@"..\\..\\SnowFlake001.bmp");