Link to home
Start Free TrialLog in
Avatar of JanFoster
JanFoster

asked on

How do I copy a form from one vb.net 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.
ASKER CERTIFIED SOLUTION
Avatar of Hawkvalley1
Hawkvalley1
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of _Katka_
_Katka_
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Let's say your Form's name is Form1

Copy Form1.vb, Form1.resx & Form1.Designer.vb
from one project
to
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.

HTH
Ashok
Make sure Form1 does not exist in the project/solution you are trying to copy to.

Ashok