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!

Open the same form twice times 1

Status
Not open for further replies.

poltergeist

Programmer
Jul 16, 2003
173
CL
How to open en form more than once a time without create two forms. I'll have the possibility to edit two factoring forms in the same time.
 
One way to do it is to create an array of form objects.

dim MultForms() as new MultForm
dim NumForms as integer

sub CreateNewForm()
redim preserve MultForms(NumForms)
MultForms(NumForms).show
NumForms = NumForms + 1
end sub
 
Dim x As Form
Dim y As Form

Set x = New Form2
x.Show

Set y = New Form2
y.Show

Have fun !

[elephant2]

The pen is mightier than the sword - and quite frankly . . easier to write with
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top