|
-
Oct 5th, 2001, 05:59 PM
#1
Thread Starter
Addicted Member
really EZ question (that I cant figure out :))
How do you duplicate a form (make an array)?
-
Oct 5th, 2001, 06:11 PM
#2
Frenzied Member
A form array? Never heard of it...what on earth are u trying to do with it?
You just proved that sig advertisements work.
-
Oct 5th, 2001, 06:15 PM
#3
Thread Starter
Addicted Member
Originally posted by nishantp
A form array? Never heard of it...what on earth are u trying to do with it?
err...I dont know what its called!!! Ive seen it done all the time..how do I duplicate a form (so it shows up twice on the screen...) I dont know how else to explain it
-
Oct 5th, 2001, 06:18 PM
#4
PowerPoster
You mean this?
VB Code:
Dim frm As New Form1
frm.Show
-
Oct 5th, 2001, 06:20 PM
#5
Thread Starter
Addicted Member
Originally posted by chrisjk
You mean this?
VB Code:
Dim frm As New Form1
frm.Show
yup. thanks. I knew there was an easy way to do it.
-
Oct 5th, 2001, 06:20 PM
#6
Lively Member
Private Sub Command1_Click()
Dim blah As New Form1
blah.Show
End Sub
-
Oct 5th, 2001, 06:22 PM
#7
Lively Member
:P~
bah! you beat me too it :P
-
Oct 5th, 2001, 06:22 PM
#8
Thread Starter
Addicted Member
I am actually suprised forms dont have an index property like everything else in vb... That was my first quess on how you would do it but obviously not
-
Oct 5th, 2001, 09:40 PM
#9
Frenzied Member
no, no index property as forms are not controls themselves, but a container for controls... and since their not controls it eradicates the idea of a control array.
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Oct 5th, 2001, 11:44 PM
#10
If you really want the forms in an array, you can make an array of forms:
Dim MyForms() As Form1
..and then just use it like any other array:
VB Code:
'Note: this particular bit of code will not work unless
'the array already has at least one element in it
i = UBound(MyForms) + 1
ReDim Preserve MyForms(i)
Set MyForms(i) = New Form1
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
|