|
-
Mar 9th, 2003, 08:32 AM
#1
Thread Starter
Addicted Member
form Array??
hi guys
well I wanted to know if I can create an array of forms in my application , just like yahoo messenger When we send private message for each user. Then they have the same window for each user. I checked form properties but I couldn’t find any index property in it. Can anybody help?
Thanks a lot
-
Mar 9th, 2003, 09:20 AM
#2
Frenzied Member
Make a new form called form2 (or substitute the name in the code), and use:
VB Code:
Private Sub Command1_Click()
Dim fr As New Form2
fr.Show
End Sub
-
Mar 9th, 2003, 09:23 AM
#3
Frenzied Member
To close all the forms at the end, use
VB Code:
Private Sub Form_Unload(Cancel As Integer)
Dim fr As Form
For Each fr In Forms
Unload fr
Next
End Sub
You might find that useful
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
|