Link to home
Start Free TrialLog in
Avatar of Mickeys
MickeysFlag for Sweden

asked on

Open a image

I use this

Bitmap backgroundImage = new Bitmap(Directory.GetCurrentDirectory() +"\\images\\" + "player1_back_hit.gif");
            drawingSurface.DrawImage((backgroundImage), location);

but my //image// is here
"C:\\Documents and Settings\\MFL\\Dokumenter\\Visual Studio 2008\\Projects\\Black_Jack\\Black_Jack\\images

and hte Directory.GetCurrentDirectoy() is here
"C:\\Documents and Settings\\MFL\\Dokumenter\\Visual Studio 2008\\Projects\\Black_Jack\\Black_Jack\\bin\\Debug"


So my question is. How can I make it open in the correct directory?
ASKER CERTIFIED SOLUTION
Avatar of Pablissimo
Pablissimo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial