get image from resource file
I have an image called "imgUnableToDisplay" held in a resource file called "resImages" which is in the root of my application.
Can someone tell me how to get to it ?
I have tried :
Code:
System.Drawing.Image img =
(System.Drawing.Image)Properties.Resources.ResourceManager.GetObject("imgUnableToDisplay");
and
Code:
System.Drawing.Image img =
(System.Drawing.Image)Properties.Resources.ResourceManager.GetObject("resImages.imgUnableToDisplay");
but no joy.
Thanks In Advance
Re: get image from resource file
Sorry folks it was as simple as :
System.Drawing.Image img = resImages.imgUnableToDisplay