Reputation: 2862
I was working on a C# project and everything works perfectly fine. But after I messed up with a code a little now its getting a wired error. But I can run the last working solution fine. Can I reset the code again to last working solution? If I can, what is the method to do that? Here is the error message:
"Error 1 'Static_calc.Form2' does not contain a definition for 'Form2_Load' and no extension method 'Form2_Load' accepting a first argument of type 'Static_calc.Form2' could be found (are you missing a using directive or an assembly reference?)"
Upvotes: 1
Views: 57
Reputation: 2069
That sounds like you have deleted a method that your form is rely on in its designer code behind. Take a look in the designer file for Form2 for any event bindings that relate to Form2_Load and delete the line that mentions it.
You should then be able to view the form correctly in the gui and use it as before.
Upvotes: 1