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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading the same form twice 1

Status
Not open for further replies.

denis60

Technical User
Apr 19, 2001
89
CA
Hi!

Is it possible to load (use) the same form twice (or more) instead of creating many (same) form in the projet?

Thanks in advance...
 
How is it possible?
If i click a button twice to load 2 form, it just open 1 ...
 
Code:
Private Sub Command1_Click()
    Dim MyForms(1 To 2) As Form1
    
    Set MyForms(1) = New Form1
    
    Set MyForms(2) = New Form1
    
    MyForms(1).Show
    MyForms(2).Show
End Sub
 
Thanks you very very much bjd4jc !!!!
 
You could also create the form as a MDI form..
Then you can open as many copies of the form as you with..
I just clones the parent form.

Alley
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top