Hai

I have One  file named Images.resx. I have embedded this file into my project and I 
have following code.

Assembly thisAssembly = 
Assembly.GetAssembly(Type.GetType("WindowsApplication1.Form1"));
ResourceManager rmListImages = new ResourceManager("Images", thisAssembly);
ImageList imageList = new ImageList();
imageList.ImageSize = new Size(16, 16);
Bitmap icons = (Bitmap)rmListImages.GetObject("IconsList");

When I am running the above code it is showing the following error.

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 "WindowsApplication1".
baseName: Images locationInfo: resource file name: Images.resources assembly: 
WindowsApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

Can any body suggest how to solve this.
Chito. 


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
You may be interested in this chat on Microsoft Windows Embedded platforms
6 Feb 2003, 9:30am PST Chat Room:
http://communities2.microsoft.com/home/chatroom.aspx?siteid=34000070

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to