M
Mike
Is there a way to embed a bitmap into the exe file created by Visual Studio?
And then create a Bitmap object from it at runtime?
And then create a Bitmap object from it at runtime?
Mike said:I added the bitmap to the project and set the Build Action to Embedded
Resource and that string is empty:
?
System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames()
{Length=0}
Bitmap(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceAlex Feinman said:Yes. Add bitmap to the project and in its properties set Action to Embedded
Resource. Then at the runtime use:
Dim bm as newSystem.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames()Stream(strBitmapName))
Where strBitmapName is <Namespace>.<Bitmap file name>. Keep in mind that
strBitmapName is case-sensitive. If you are having troubles with figuring
out the exact bitmap name, enumerate the string array returned by