Icons

  • Thread starter Thread starter Bonj
  • Start date Start date
B

Bonj

Is there any good pointers to creating icons in resources and using them in
C# projects out there?
All I can seem to find in the help is localization of languages and culture
settings,none of which I want.
 
Hi,
not quite sure what you are asking about, but here is a way to create a
bitmap from a resource:

Assembly asm = Assembly.GetExecutingAssembly();

Bitmap bm1 = new
Bitmap(asm.GetManifestResourceStream("ExtendedMenu.COPY.BMP"));
Bitmap bm2 = new
Bitmap(asm.GetManifestResourceStream("ExtendedMenu.CUT.BMP"));

The bitmaps are included in the project, set the type to "EmbeddedResource".
The string supplied to GetManifestResourceStream must include full namespace
and it's case sensitive.


Hope this helped.

Chris
 
I'm just confused as to why a c# project has such a shit icon by default and
why even if you change it in design mode it doesn't take effect.
 
Back
Top