I have two solutions, one functional, the other experimental. I made some forms and code that I want to import from Experimental to Functional.
I followed directions found here to import the forms.
- Add the existing files (cs, designer, and resx) from the Experimental folder
- Exclude them from solution
- Add them again from the Functional folder
- Done (sort of)
What I encountered was that I needed to change the namespace on the FormOne.Designer.cs file to match that of the Functional solution:
namespace WindowsFormsApp1
Changed to:
namespace ProjName
After doing that and saving it worked for FormOne.
But following the exact same procedure (one form at a time) for FormTwo and FormThree fails. When I try to build or rebuild the solution or project I get:
FormTwo.Dispose(bool): no suitable method found to override
I get this same error for both FormTwo and FormThree. I did a copy/paste of the namespace line to ensure I did not make a typo when entering it.