How do I copy a form from one solution to another

I need to copy forms from a production project to a new development project. The forms are changing and I do not want to touch the existing proejcts. I tried opening the code but cannot seem to get the form in design mode into the new project.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You can right click on the project in the new solution and add existing item -> and browse to it. Or if you like a group of forms consider extracting as a template -> file -> export template (which will guide you thru the process). Your new template will be there when you select new project, now you can make a slightly diff version without messing up the original.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial

1) click on solution (target) in solution explorer
2) press Add existing project,
3) it will add this project so when you modify it either of solution it will change for both

or just copy those form files (designer, resource, and code) for each form
and do 1-3) but for those copied files.


AshokSr. Software EngineerCommented:
Let's say your Form's name is Form1

Copy Form1.vb, Form1.resx & Form1.Designer.vb
from one project
another project folder (in same folder where you have other form code for this project).

Then open the project in VS
Right click on Solution name and Select Add -> Existing Item

Select Form1.vb

This should add all files necessary.

AshokSr. Software EngineerCommented:
Make sure Form1 does not exist in the project/solution you are trying to copy to.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.