It needs to be an absolute path to the file, so you need to use Server.MapPath()
like so...
Bitmap myBitmap3 = new Bitmap(Server.MapPath("~/images/logo.bmp"));
(Assuming this is a web app)
if this is not a web app, and you plan on moving this around, I suggest setting a key in the config file of the root path like <add key="root" value="C:\mystuff\" />
Reputation Points: 11
Solved Threads: 0
Junior Poster in Training
Offline 54 posts
since Jun 2005