470,855 Members | 1,301 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

copy forms across applications

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...

Mar 1 '06 #1
5 1303
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.

"ki******@hotmail.com" <ki******@hotmail.com@discussions.microsoft.com>
wrote in message news:53**********************************@microsof t.com...
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...

Mar 1 '06 #2


"Gabriel MagaƱa" wrote:
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.

"ki******@hotmail.com" <ki******@hotmail.com@discussions.microsoft.com>
wrote in message news:53**********************************@microsof t.com...
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...



That only copied the vb code and NOT the windows forms (menus, buttons, text
fields...)
Mar 1 '06 #3
Notice I said "and associated files" which may contain these missing pieces.
Otherwise try drag and drop as opposed to copy-paste...

"ki******@hotmail.com" <ki****************@discussions.microsoft.com> wrote
in message news:59**********************************@microsof t.com...


"Gabriel Magańa" wrote:
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.

"ki******@hotmail.com" <ki******@hotmail.com@discussions.microsoft.com>
wrote in message
news:53**********************************@microsof t.com...
>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...
>



That only copied the vb code and NOT the windows forms (menus, buttons,
text
fields...)

Mar 1 '06 #4


"Gabriel MagaƱa" wrote:
Notice I said "and associated files" which may contain these missing pieces.
Otherwise try drag and drop as opposed to copy-paste...

"ki******@hotmail.com" <ki****************@discussions.microsoft.com> wrote
in message news:59**********************************@microsof t.com...


"Gabriel MagaƱa" wrote:
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.

"ki******@hotmail.com" <ki******@hotmail.com@discussions.microsoft.com>
wrote in message
news:53**********************************@microsof t.com...
>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...
>


That only copied the vb code and NOT the windows forms (menus, buttons,
text
fields...)



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.

Mar 1 '06 #5
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.
"ki******@hotmail.com" wrote:


"Gabriel MagaƱa" wrote:
Notice I said "and associated files" which may contain these missing pieces.
Otherwise try drag and drop as opposed to copy-paste...

"ki******@hotmail.com" <ki****************@discussions.microsoft.com> wrote
in message news:59**********************************@microsof t.com...


"Gabriel MagaƱa" wrote:

> 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.
>
> "ki******@hotmail.com" <ki******@hotmail.com@discussions.microsoft.com>
> wrote in message
> news:53**********************************@microsof t.com...
> >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...
> >
>
>
>

That only copied the vb code and NOT the windows forms (menus, buttons,
text
fields...)



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.

Mar 2 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by TomB | last post: by
7 posts views Thread by dave | last post: by
2 posts views Thread by Dotnet Guy | last post: by
2 posts views Thread by Keith | last post: by
4 posts views Thread by David | last post: by
4 posts views Thread by =?Utf-8?B?RmFyaWJh?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.