Home All Groups Group Topic Archive Search About
Author
30 May 2005 5:16 PM
Dan
Is there a way to quickly duplicate a form in a VB project? The only way I
have figured out so far is to use Save As on the form I want to duplicate and
give it a new name. Then I rename that form. Then I Add the original form
back into the project. This all seems awkward, but I can't seem to find a
better method.

-Dan

Author
30 May 2005 5:35 PM
Veign
If it is a form that you use often then you could create a Form Template -
Place the form in the 'Microsoft Visual Studio\VB98\Template' directory.

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/


Show quoteHide quote
"Dan" <D**@discussions.microsoft.com> wrote in message
news:8A9981B3-5625-4811-80D0-B8DCA84869A9@microsoft.com...
> Is there a way to quickly duplicate a form in a VB project? The only way I
> have figured out so far is to use Save As on the form I want to duplicate
and
> give it a new name. Then I rename that form. Then I Add the original form
> back into the project. This all seems awkward, but I can't seem to find a
> better method.
>
> -Dan
Author
30 May 2005 5:55 PM
Dan
No. It's just a situation I encounter occasionally where I want to use one
form as a starting-point for designing another form.

-Dan

Show quoteHide quote
"Veign" wrote:

> If it is a form that you use often then you could create a Form Template -
> Place the form in the 'Microsoft Visual Studio\VB98\Template' directory.
>
> --
> Chris Hanscom - Microsoft MVP (VB)
> Veign's Resource Center
> http://www.veign.com/vrc_main.asp
> --
> Read. Decide. Sign the petition to Microsoft.
> http://classicvb.org/petition/
>
>
> "Dan" <D**@discussions.microsoft.com> wrote in message
> news:8A9981B3-5625-4811-80D0-B8DCA84869A9@microsoft.com...
> > Is there a way to quickly duplicate a form in a VB project? The only way I
> > have figured out so far is to use Save As on the form I want to duplicate
> and
> > give it a new name. Then I rename that form. Then I Add the original form
> > back into the project. This all seems awkward, but I can't seem to find a
> > better method.
> >
> > -Dan
>
>
>
Author
30 May 2005 6:04 PM
Veign
Then what you are doing is the way to go.

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/


Show quoteHide quote
"Dan" <D**@discussions.microsoft.com> wrote in message
news:3266171F-7CBA-4AD8-9DD4-B36B468A3CAB@microsoft.com...
> No. It's just a situation I encounter occasionally where I want to use one
> form as a starting-point for designing another form.
>
> -Dan
>
> "Veign" wrote:
>
> > If it is a form that you use often then you could create a Form
Template -
> > Place the form in the 'Microsoft Visual Studio\VB98\Template' directory.
> >
> > --
> > Chris Hanscom - Microsoft MVP (VB)
> > Veign's Resource Center
> > http://www.veign.com/vrc_main.asp
> > --
> > Read. Decide. Sign the petition to Microsoft.
> > http://classicvb.org/petition/
> >
> >
> > "Dan" <D**@discussions.microsoft.com> wrote in message
> > news:8A9981B3-5625-4811-80D0-B8DCA84869A9@microsoft.com...
> > > Is there a way to quickly duplicate a form in a VB project? The only
way I
> > > have figured out so far is to use Save As on the form I want to
duplicate
> > and
> > > give it a new name. Then I rename that form. Then I Add the original
form
> > > back into the project. This all seems awkward, but I can't seem to
find a
> > > better method.
> > >
> > > -Dan
> >
> >
> >
Author
1 Jun 2005 6:01 PM
Daryl Muellenberg
What I have done in the past that seems to work is make a copy of the form
(frm and frx files) and then use a text editor on the new frm file and
replace all occurrences of the original form name with your new form name
(for example, if your original form is FormABC and your new form is named
FormXYZ then replace all occurrences of FormABC with FormXYZ). Then you can
just add FormXYZ to your project.

Daryl

Show quoteHide quote
"Dan" <D**@discussions.microsoft.com> wrote in message
news:8A9981B3-5625-4811-80D0-B8DCA84869A9@microsoft.com...
> Is there a way to quickly duplicate a form in a VB project? The only way I
> have figured out so far is to use Save As on the form I want to duplicate
and
> give it a new name. Then I rename that form. Then I Add the original form
> back into the project. This all seems awkward, but I can't seem to find a
> better method.
>
> -Dan
Author
1 Jun 2005 6:18 PM
Tim Rude
Yeah, that's much less awkward. ;-)

--
Tim Rude

timrude@NOSPAM.hotmail.com
(remove NOSPAM. for correct email address)

Show quoteHide quote
"Daryl Muellenberg" <dmuellenb***@agris.com> wrote in message
news:%230kY2PtZFHA.796@TK2MSFTNGP10.phx.gbl...
> What I have done in the past that seems to work is make a copy of the form
> (frm and frx files) and then use a text editor on the new frm file and
> replace all occurrences of the original form name with your new form name
> (for example, if your original form is FormABC and your new form is named
> FormXYZ then replace all occurrences of FormABC with FormXYZ). Then you
can
> just add FormXYZ to your project.
>
> Daryl
>
> "Dan" <D**@discussions.microsoft.com> wrote in message
> news:8A9981B3-5625-4811-80D0-B8DCA84869A9@microsoft.com...
> > Is there a way to quickly duplicate a form in a VB project? The only way
I
> > have figured out so far is to use Save As on the form I want to
duplicate
> and
> > give it a new name. Then I rename that form. Then I Add the original
form
> > back into the project. This all seems awkward, but I can't seem to find
a
> > better method.
> >
> > -Dan
>
>