i am writing a program that laod some bmp files from a folder called images, located in the same folder as my code. at the moment i load them using code a bit like this:
aPicture = Image.FromFile("Images/picture.bmp");
the program now (almost) has the ability to load by double clicking any file associated with it. the problem is, wheni do that the current directory (System.Environment.CurrentDirectory) is where the save file is, not the code. how can i find what directory the code is in?
____________________________________________________
If you like a post, show you care by giving it a <censored>.
aPicture = Image.FromFile("Images/picture.bmp");
the program now (almost) has the ability to load by double clicking any file associated with it. the problem is, wheni do that the current directory (System.Environment.CurrentDirectory) is where the save file is, not the code. how can i find what directory the code is in?
____________________________________________________
If you like a post, show you care by giving it a <censored>.