Click to See Complete Forum and Search --> : Creating multiple forms


Dennis Garlick
January 28th, 2000, 09:20 PM
Is it possible to create multiple copies of a single form within a visual basic program, like how internet explorer can have a number of processes operating at once? What I mean is that every time you press a button to show a form, it creates a new version of the form. Thanks.

Chris Eastwood
January 29th, 2000, 03:21 AM
In VB, Forms are treated the same way as a class - you can create instances of forms by using code such as :


option Explicit
'
private Sub Command1_Click()
Dim fFrm as Form1
'
set fFrm = new Form1
'
Load fFrm
'
fFrm.Show
'
End Sub





Chris Eastwood

CodeGuru - the website for developers
http://codeguru.developer.com/vb