Dmitry Makovetskiyd
Dmitry Makovetskiyd

Reputation: 7053

Add one winform to another project

I have 3 projects, I want to merge the winforms in each project into one project. How can I do it?

Upvotes: 0

Views: 1389

Answers (4)

Bek Raupov
Bek Raupov

Reputation: 3777

If you haven't used it before, JetBrain's Resharper could be very useful for you in this case.

To rename the namespace, click on the namespace on the class and hit F2 (hope it works without Resharper).

Upvotes: 0

HABJAN
HABJAN

Reputation: 9328

First you need to analyse if forms in those 3 projects has any not standard dependencies (references to libraries). Then you can create new project, add library references from other projects, drag and drop files from old projects to new project, fix namespaces (or preserve them so you dont have collision between similar forms or names from different projects)

Upvotes: 2

Javed Akram
Javed Akram

Reputation: 15344

  1. Create a new project
  2. In Solution Explorer click Add Existing Items.
  3. Add all the forms from different projects (Make sure that name of each form should be different.)

Upvotes: 1

Snowbear
Snowbear

Reputation: 17274

Straightforward approach would be:

  • Create new Project
  • Copy all needed code files in Solution Explorer to the new project
  • Fix namespaces
  • Add missing references (if any)
  • Drop original projects

Upvotes: 1

Related Questions