J
John Spiegel
Hi all,
I've been banging my head trying to figure out what I'm missing here. I
downloaded a control that uses a stream derived from a bitmap file. What I
can't seem to figure out is where it's getting its location for the bmp.
Physically, it is located in a Resources\Images folder under the project
root. In the project, this same folder structure is referenced (so the
treeview shows a Resources folder containing an Images subfolder and the
bitmap contained within).
The example then uses
Assembly.GetManifestResourceStream("MyNameSpace.Resources.Images.MyFile.bmp");
When I attempt to duplicate this functionality, the above function returns a
stream of an "<undefined value>". I've checked names, compared the resx
files and directory structures with no luck. I've done very little with
reflection and resource files so am probably missing something stupid.
Any suggestions?
Thanks,
John
I've been banging my head trying to figure out what I'm missing here. I
downloaded a control that uses a stream derived from a bitmap file. What I
can't seem to figure out is where it's getting its location for the bmp.
Physically, it is located in a Resources\Images folder under the project
root. In the project, this same folder structure is referenced (so the
treeview shows a Resources folder containing an Images subfolder and the
bitmap contained within).
The example then uses
Assembly.GetManifestResourceStream("MyNameSpace.Resources.Images.MyFile.bmp");
When I attempt to duplicate this functionality, the above function returns a
stream of an "<undefined value>". I've checked names, compared the resx
files and directory structures with no luck. I've done very little with
reflection and resource files so am probably missing something stupid.
Any suggestions?
Thanks,
John