Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have made several Winform projects c# with a MS Access database all worked fine.

Now after time they dont run I have them on a external drive. The error

I get is Form1.resx cannot be found. I have searched for an answer but found none.

what happen to Form1.resx it has the yellow triangle on it?

The item Form1.resx does not exist in the project directory. It may have been moved, renamed or deleted.

What I have tried:

I have searched high and low but found not answer.
Posted
Updated 13-May-20 4:12am

I think this post might help. Sound like the resx file is missing and you want to know how to regenerate it?

Open the Form1, right click Properties, look for the Localizable property, turn it to true then to False. You should see a new Form1.resx file being generated.

But what are the contents in it previously, that a different story. That why we all should check in the code into a repository.

.net - Is there a way to regenerate a missing .resx file? - Stack Overflow[^]
 
Share this answer
 
Comments
Maciej Los 30-Apr-18 4:33am    
5ed!
Things like icons and bitmaps are stored in the forms .resx file which is in XML format, if you want you can open it with a text editor.
If the forms .resx file is gone you could try to remove all references to it, as said likely suspects are icons and bitmaps, but all kinds of things could be in it.
In the past I also experienced difficulties with .resx files when upgrading older solutions, but that is so long ago that I can't remember the steps I took to fix it, it was complicated however.
Maybe it would be easier to create a new form from scratch ...
 
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