B
babylon
I have a user control (usercontrol.dll) that has an embedded image (abc.bmp)
I would like other project include the user control directly instead of
referencing the usercontrol.dll so that i only need to distribute one .exe
instead of both usercontrol.dll and the .exe
i use
// Get the assembly that contains the bitmap resource
Assembly myAssembly = Assembly.GetAssembly(assemblyType);
// Get the resource stream containing the images
Stream imageStream =
myAssembly.GetManifestResourceStream("UserControl.abc.bmp");
to get the abc.bmp
however if i include all the .cs / .bmp of the usercontrol project to other
project (e.g. TestProject)
the namespace of the bitmap would than changed to "TestProject.abc.bmp",
so the GetManifestResourceStream call fails...
How can i embedded an image and distribute the source code for compile in
order to provide single .exe output at the same time!?!??
thx...
I would like other project include the user control directly instead of
referencing the usercontrol.dll so that i only need to distribute one .exe
instead of both usercontrol.dll and the .exe
i use
// Get the assembly that contains the bitmap resource
Assembly myAssembly = Assembly.GetAssembly(assemblyType);
// Get the resource stream containing the images
Stream imageStream =
myAssembly.GetManifestResourceStream("UserControl.abc.bmp");
to get the abc.bmp
however if i include all the .cs / .bmp of the usercontrol project to other
project (e.g. TestProject)
the namespace of the bitmap would than changed to "TestProject.abc.bmp",
so the GetManifestResourceStream call fails...
How can i embedded an image and distribute the source code for compile in
order to provide single .exe output at the same time!?!??
thx...