Don't know if this helps, but this is how I get an icon file from my
resource file. I would imaging for an image it will be very similar,
probably only have to cast to a (Bitmap) instead of an (Icon).
Resx File: ProgramResources.resx
C# 2 Code:
*******************************************
using System.Resources;
using System.Reflection;
ResourceManager rm = new ResourceManager(
"YourProgramName.ProgramResources",
Assembly.GetExecutingAssembly());
Program.NotifyIcon.Icon =
(Icon)rm.GetObject("my_icon_name");
*******************************************
ti*****@gmail.com wrote:
I have a bunch of images named head1, head2, head3... in my
Resources.resx file in my project. How do I get the image if I have
the name as a string?