Click here to Skip to main content
15,908,115 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
oh help me please. I change the name of an picturebox event and accidently.visual stodio showed mean error and I just press ok and the alot of error on my designer accured.If I dont solve erros all data on my designer will be lost.help me please.

error:
VB
Error   16  The type or namespace name 'Resources' does not exist in the namespace 'MySolutionName.Properties' (are you missing an assembly reference?) ..



error on all images I add to resources and used them:

Could not find type 'Resources.archive_48'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.
Posted
Comments
johannesnestler 11-Feb-14 10:11am    
Ctrl-Z (Undo) didn't solve your problem?
mit62 11-Feb-14 10:12am    
no,no
johannesnestler 11-Feb-14 10:18am    
BTW: maybe in the future use source-control (did you know there is a free TeamFoundationSERVICE?) But I know a lot about VS-Designer and often had similar Problems, so maybe I could help, but there is too Little info to tell what exactly went wrong. Did you look at the designer-file in code view - which errors do you see? (The missing reference isn't the problem I hope)
johannesnestler 11-Feb-14 10:15am    
So you just messed up the designer-code. But you can correct it manually. Have a look at the designer file - can you spot the Errors? And of course you checked the obviouse (that resources class is available)?
mit62 11-Feb-14 10:22am    
error is on this lines on .Resources:
this.MnuPrvndPrslInfo.Image = global::Salary.Properties.Resources.image;
where should I check if Resources class is availible?

Look at the auto-generated C# file, which is shown as the child node of your resource file node in Solution Explorer. Open it and see what's in there. Use the namespace declared in this file. Use this file to see how the resources themselves are declared and use them appropriately.

—SA
 
Share this answer
 
in Resources.resx which is shown as the child node in properties folder of My solution, I removed images with error, and everything was ok. thanks all
 
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