copy forms across applications

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I developed an application using visual studio 2003. Now I want to make a
similar application without having to redesign similar forms. Is there a way
to copy and paste windows forms across application? I can copy from one to
the paste buffer. BUT, there is no corresponding paste on the second
application.

How can you do this???

tia...
 
What I have done is to copy the form and associated files (resx, etc...) via
the file system first, then "add existing item" on the target project and
select the form file you just copied... And then fix the namespace,
references, and other errors you might have when using the form for the
first time.
 
Gabriel Magaña said:
What I have done is to copy the form and associated files (resx, etc...) via
the file system first, then "add existing item" on the target project and
select the form file you just copied... And then fix the namespace,
references, and other errors you might have when using the form for the
first time.

That only copied the vb code and NOT the windows forms (menus, buttons, text
fields...)
 
Notice I said "and associated files" which may contain these missing pieces.
Otherwise try drag and drop as opposed to copy-paste...
 
Gabriel Magaña said:
Notice I said "and associated files" which may contain these missing pieces.
Otherwise try drag and drop as opposed to copy-paste...

I copied the .vb and .resx files (are there more?) from the first
application to the second directory, then did the "add existing". I see the
..vb code and the .resx in the second project, but the resx file opens as a
table of the forms I want. no forms.
 
Choose 'Add existing item' then select the .cs file of the form from your
source folder then click 'Open'. The IDE will copy everything about the form
to your project folder for you. Try to see if this is what you want. To
prevent error in opening the form, ensure you have added all necessary
reference about the form to to project first.
 
Back
Top