How to do COPY in VS2005

  • Thread starter Thread starter Benson
  • Start date Start date
B

Benson

Since there are many similar programs worked out, I want to copy a similar
program (alreay work under form inheritance) to a new one so that I can
change the new one quicker.
It is not ok to copy under Windows Explorer.
How can I do this in VS2005?

Benson
VS2005, VB2005
 
Benson said:
Since there are many similar programs worked out, I want to copy a similar
program (alreay work under form inheritance) to a new one so that I can
change the new one quicker.
It is not ok to copy under Windows Explorer.
How can I do this in VS2005?

Benson
VS2005, VB2005

The only way I have figured out how to do it was to make a new project,
copy all objects (forms, modules and classes) from the old project into
the new project folder, then in the new project add each object with
the add existing item menu item. The only caveat I am aware of is with
2005, there are TWO files for each form, not just one like 2003 had.
But you only add one, the form will come up automatically attached to
both of them.
 
The only way I have figured out how to do it was to make a new project,
copy all objects (forms, modules and classes) from the old project into
the new project folder, then in the new project add each object with
the add existing item menu item. The only caveat I am aware of is with
2005, there are TWO files for each form, not just one like 2003 had.
But you only add one, the form will come up automatically attached to
both of them.

Don't understand why you would use 'add existing item' ... once you copy the
files to the new directory, you can activate 'show all files' and then
select all the new files, right-click, and select 'include in project'.
<shrug> May be easier for you too :)

hth,
Mythran
 
Mythran said:
Don't understand why you would use 'add existing item' ... once you copy the
files to the new directory, you can activate 'show all files' and then
select all the new files, right-click, and select 'include in project'.
<shrug> May be easier for you too :)

After copying the objects from the first project to the new one, open
the new project in VS. Right click on the project, move the mouse down
to Add, and select Existing Item in the sub-menu.
 
After copying the objects from the first project to the new one, open
the new project in VS. Right click on the project, move the mouse down
to Add, and select Existing Item in the sub-menu.

Yes, I understand and know how to do that. What I'm saying though, is
instead of using "Add Existing Item" you could just use "Include In Project"
option when you activate the "Show All Files" for the project.

Mythran
 
Thanks for advice.

Mythran said:
Yes, I understand and know how to do that. What I'm saying though, is
instead of using "Add Existing Item" you could just use "Include In
Project" option when you activate the "Show All Files" for the project.

Mythran
 
Back
Top