1) Add an Embedded Resource in your C# Project (ex: image1.bmp);
2) In your code use this call to load the Bitmap :
Bitmap image = new Bitmap(GetType().Module.Assembly.
GetManifestResourceStream("MyApplicationNamespace.image1.bmp"));
GetManifestResourceStream("ApplicationNamespace.
ResourceFileWithExtension").
or
GetManifestResourceStream("ApplicationNamespace.FolderName.
ResourceFileWithExtension").
Depending where the Resource File is located in your project.
Saturday, December 24, 2005
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment