I am trying to use GetManifestResourceStream and i keep getting a NULL
exception error?? i cannot understand why?
private Bitmap _buttonFace;
.
.
.
my code is as follows....
System.IO.Stream strm =
this.GetType().Assembly.GetManifestResourceStream("FWNGL.buttonface.bmp");
_buttonFace = new Bitmap(strm);
Regards
Darryn
Try this:
string []resourceNames =
this.GetType().Assembly.GetManifestResourceNames();
Go through that list and verify that the resource you want is listed
there. You'll have to use the exact name that's shown there.
Thanks, I did what you said and i found that my bitmap was missing! but i
have added the bitmap into the project?? why isn't it picking it up?
Regards
Darryn
"Shell" <shel...@yahoo.com> wrote in message
news:cfpc95$u...@odak26.prod.google.com...
Robert
"Darryn Ross" <dar...@datawave.com.au> wrote in message
news:%23dFOFq0...@TK2MSFTNGP11.phx.gbl...
"Robert Misiak" <rmi...@users.cutthispartout.sourceforge.net> wrote in
message news:g4XTc.1199$3O3....@newsread2.news.pas.earthlink.net...