Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicating a form X times

Status
Not open for further replies.

TJJeffries

Programmer
May 22, 2002
2
US
I have a form that I want to use as a templet form for other forms in the same application. I tried saving the frmForm as frmForm2 and it did not work. Is there a way to make a copy of the form and import it into the same application?
 
Some confusion on this end. If it is the same form, why can't you just instantiate it multiple times? If you want it to be 'slightly' different in design, A way is to copy the 'object' in Ein (explorer) and paste (then rename) it. Open your project and add the re-named form. open and modify it as desired.

MichaelRed
m.red@att.net

There is never time to do it right but there is always time to do it over
 
If the form is to be used in multiple instances with little or no changes then set it up once and declare new uses in the code

Dim fFormA as New FormA
Load fFormA
With fFormA
.Caption = "Whatever"
.Label1.Caption = "Whatever"
.Show
End With

Each instance will be separate in memory

Hope this helps
 
Thank you all for the help. I will try these suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top