I was dealing with this error "the type namespace 'Resource' could not be found".
So after adding some reference for that I got the run-time designer error like that with the title "to prevent any data loss resolve the following error first" (didn't take it seriously ). I cleaned and rebuild the solution and then my form became a completely new form without any components on it although the back end code is all there except for the warnings in designer.cs in which all form components are declared but it says them as warning "the field metrolabel1 is never used" it says that about all the components that were there before on the form.
I am stuck on this situation. Is there any way I can get my design layout code back?