Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello to everybody.
I have a question.
When I create a new Form project in Visual Studio 2010 Professional by Wizard
and I use some Image in controls like this:
C#
this.button1.Image = global::WindowsFormsApplication1.Properties.Resources.Image1;

when I launch the project the application thrown an Exception

System.Resources.MissingManifestResourceException' in mscorlib.dll

in "Resources.Designer.cs"
C#
internal static System.Drawing.Bitmap Image1 {
    get {
        object obj = ResourceManager.GetObject("Image1", resourceCulture);
        return ((System.Drawing.Bitmap)(obj));
    }
}

Can someone help me ??
Thankyou in advice
Posted
Updated 24-Feb-23 4:48am
v2

I think it's a known bug:
http://support.microsoft.com/kb/318603[^]

Hope this helps,
Fredrik
 
Share this answer
 
I read the tech support but it is not my case:

I'm using VS2010 (not VS2003 or VS2005)
and the resource are not locate in a particular Form,
they are project-global.
 
Share this answer
 
All u need to do is to right click on the resx file -> properties -> Managed Resources (TAB) -> Resource Logical Name -> input this below

$(RootNamespace).ClassSpecifier.resources

please change to your own Class specifier
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900