|
-
January 28th, 2000, 10:20 PM
#1
Creating multiple forms
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.
-
January 29th, 2000, 04:21 AM
#2
Re: Creating multiple forms
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|