How To Copy A Form Between Projects ?


L

leegold

Hi

If I have an empty solution how do I import an existing project? I what to make a new project in a new solution that's very similar to a previously done project in another solution. But I do not want to manually redo the whole new form over again plus I want to use a lot of the code over again and edit it.

So I have an new empty solution explorer window (no projects), I want to make a new "project2", I want project2 to be a "clone" of project1 (from solution1). So everything's the same as the 1st project only it's called project2 and it's in solution2 now,

Basically i want to reuse the code and work I did and edit it for somethingnew. I've tried many things - all don't work. I tried search for the way on the web and get 20 different ways of doing it.

Using Visual Studio C# Express 2010.

Could someone help me with a way that they actually use and know works.

Thanks.
 
Ad

Advertisements

A

Arne Vajhøj

If I have an empty solution how do I import an existing project? I
what to make a new project in a new solution that's very similar to a
previously done project in another solution. But I do not want to
manually redo the whole new form over again plus I want to use a lot
of the code over again and edit it.

So I have an new empty solution explorer window (no projects), I want
to make a new "project2", I want project2 to be a "clone" of project1
(from solution1). So everything's the same as the 1st project only
it's called project2 and it's in solution2 now,

Basically i want to reuse the code and work I did and edit it for
something new. I've tried many things - all don't work. I tried
search for the way on the web and get 20 different ways of doing it.

Using Visual Studio C# Express 2010.

Could someone help me with a way that they actually use and know
works.
Long time since I last had to do that.

It is either just add existing item or copy the files to the right
directory and then add existing item (I can not remember if add
existing item copy or not - you test it).

Note that it may be worth to move the truly common code to
a third project of type class library.

Arne
 
Ad

Advertisements

R

rbowman

Arne said:
It is either just add existing item or copy the files to the right
directory and then add existing item (I can not remember if add
existing item copy or not - you test it).
I just copy the files I want manually and add them to the project.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top