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}
Alex 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 new
Bitmap(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResource
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
System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames()