Image Resources in WinForms
Posted
by Power-Mosfet
on Stack Overflow
See other posts from Stack Overflow
or by Power-Mosfet
Published on 2010-06-06T15:32:53Z
Indexed on
2010/06/06
15:52 UTC
Read the original article
Hit count: 661
winforms
I want to store images in a .dll file and use them for my winform application. but Im not able to load .dll content.
System.IO.Stream stream;
System.Reflection.Assembly assembly;
Image bitmap;
assembly = System.Reflection.Assembly.LoadFrom(Application.ExecutablePath);
stream = assembly.GetManifestResourceStream("global::template.Properties.Resources.test.png");
bitmap = Image.FromStream(stream);
this.background.titleImage = bitmap; // image box
© Stack Overflow or respective owner