Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I've have made a resource file named "Images.resources". Now I can't get my images from it...:/
private System.Resources.ResourceManager rm = new System.Resources.ResourceManager("Images", System.Reflection.Assembly.GetExecutingAssembly());
pic = (Bitmap) rm.GetObject("111.gif");
I get this error message:
An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll
Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "Images.resources" was correctly embedded or linked into assembly "Form1".
baseName: Images locationInfo: resource file name: Images.resources assembly: Form1, Version=1.0.1285.40402, Culture=neutral, PublicKeyToken=null
??? What could be wrong???
0 · ·