I'm reading embedded bitmaps from an EXE project and everthing works fine. I
do a GetExecutingAssembly, followed by setting a stream object to
MyAssemblyName.GetManifestResourceStream("MyApp.My Bitmap.BMP"). Note that
the BMP is set as an embedded resource via it's properties in the VB.NET
project. Finally, I do a "New Bitmap(MyStream)" to fetch the resource into a
Bitmap object and job done - I can display it in a PictureBox.
However, when I add the same bmp into a DLL (ie: a Class Library project)
instead of an EXE project, it doesn't work. When I set the stream object to
MyAssemblyName.GetManifestResourceStream("MyDllNam e.MyBitmap.BMP") the
stream is returned as "nothing". I'm sure my embedded resource path is
correct because I use "ILDASM.EXE" to check out the DLL assemblies manifest,
and the path shows as public mydllname.MyBitmap.BMP.
So what am I doing wrong? Is it not permitted to read embedded resources
from a DLL? Or am I missing a step when dealing with DLL's? All I get is an
exception loading the bitmap because the stream is "nothing".
Thanks for help,
Tom Edelbrok