I would like to make a copy of one of my existing forms within the same application. Is there an easy way to do this? I want both the code and the design of the form. Thanks for the help.
I create a new project under the solution. Copy the form to the new project, rename it, copy it back to the main project and then delete the added project.
Well you could copy every single line of code, including the hidden code that is part of the form designer, and copy it into a new empty form. Be sure to rename the class though.
When I say "copy", I mean file copy via Right-Click on the form name in Solution Explorer, Copy, Right-Click on the added new project in Solution Explorer, Paste, Rename, reverse process. That way I also get the Resx file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.