|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Duplicate formsIs 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 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. -- Show quoteHide quoteChris 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 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 > > > Then what you are doing is the way to go.
-- Show quoteHide quoteChris 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: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 > > > > > > 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 Yeah, that's much less awkward. ;-)
-- Show quoteHide quoteTim Rude timrude@NOSPAM.hotmail.com (remove NOSPAM. for correct email address) "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 > >
VBclassic petition
Draw line on picture; change width Class_Terminate problem & Run-time error'424': Object required determining a rising\falling trend MkDir with blanks Creating a Toolbar 3rd Party ActiveX Form Control... Working application - Now generates error help with passing values from an aspx page? about dll ?? |
|||||||||||||||||||||||