E
elziko
I'm trying to use an embedded image(bitmap) using the following code:
imgDrag = New
System.Drawing.Bitmap(GetType(QueryResultGrid).Assembly.GetManifestResourceS
tream("Comp.Tech.QueryResultGrid.ResultsGridDrag.bmp"))
Where QueryResultGrid is the class thats going to use the image,
Comp.Tech.QueryResultGrid is the assembly name and ResultsGridDrag.bmp is
the file name of the embedded resource. However, on runing this line I get:
An unhandled exception of type 'System.ArgumentException' occurred in
system.drawing.dll
Additional information: 'null' is not a valid value for 'stream'.
Any ideas why? I think that maybe I should be using something other than
"Comp.Tech.QueryResultGrid.ResultsGridDrag.bmp"?
imgDrag = New
System.Drawing.Bitmap(GetType(QueryResultGrid).Assembly.GetManifestResourceS
tream("Comp.Tech.QueryResultGrid.ResultsGridDrag.bmp"))
Where QueryResultGrid is the class thats going to use the image,
Comp.Tech.QueryResultGrid is the assembly name and ResultsGridDrag.bmp is
the file name of the embedded resource. However, on runing this line I get:
An unhandled exception of type 'System.ArgumentException' occurred in
system.drawing.dll
Additional information: 'null' is not a valid value for 'stream'.
Any ideas why? I think that maybe I should be using something other than
"Comp.Tech.QueryResultGrid.ResultsGridDrag.bmp"?