currently I am trying to make it so that I can get access to the image “staticmap.bmp” from within the program so that I can then transfer the program to another computer and still have access to the image. I have tried transferring the file into the program file, but it does not show in the visual studio tab as being there, perhaps I am moving it to the wrong place?. Either that or I am calling it in correctly?
Does anyone know where a picture file has to be for it to be called?
Here is the code,
Image image = Image.FromFile("staticmap.bmp");
Add it as an embedded resource into the application. A simple Google search will find a tutorial for doing this.