I've got a bitmap file I want to use as a resource for an application. I
went to the project, added and existing item (the bitmap), and then set it
to embedded resource. When I run the app, I get the error:
An unhandled exception of type 'System.Argumen tException' occurred in
system.drawing. dll
Additional information: Resource 'skin.bmp' could not be found in class
'CodeTrue.Sales .SalesForm'.
the code is simply:
this.Background Image = new Bitmap(GetType( ), "skin.bmp") ;
Oddly enough, I use this same bitmap (a copy of the file) in another
project, and the same code works fine, so there must be something else that
I'm missing. Any help on this would be great.
Thanks,
Trevor B
went to the project, added and existing item (the bitmap), and then set it
to embedded resource. When I run the app, I get the error:
An unhandled exception of type 'System.Argumen tException' occurred in
system.drawing. dll
Additional information: Resource 'skin.bmp' could not be found in class
'CodeTrue.Sales .SalesForm'.
the code is simply:
this.Background Image = new Bitmap(GetType( ), "skin.bmp") ;
Oddly enough, I use this same bitmap (a copy of the file) in another
project, and the same code works fine, so there must be something else that
I'm missing. Any help on this would be great.
Thanks,
Trevor B
Comment