|
-
May 9th, 2001, 04:56 PM
#1
Thread Starter
Lively Member
Creating Form Copies During Run-Time
I know how to create copies of objects during run-time, but how do u create copies of forms during runtime?
Thanks for reading/replying to this post....
-Justin Gomes
[email protected]
-
May 9th, 2001, 05:06 PM
#2
Fanatic Member
Not to difficult, here's how you do it. Add the following to a form with a command button clicking the command button with create a new copy of form1 and display it.
Code:
Private Sub Command1_Click()
Dim frm As Form
Set frm = New Form1
frm.Caption = "Hello World"
frm.Show
End Sub
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
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
|