T
TonyMast
VB 2005 - XP Pro - Windows forms
I'm trying to write a simple multiplication tables program for my little
girl.
How can I create 200 labels, 100 textboxes.
Here is what I've tried so far (without luck).
For looper As Int16 = 1 To 101
Dim lab As New Label
lab.Name = "labQuestion" & Format(looper)
Me.Controls.Add("labQuestion" & Format(looper)) 'seems I can only add them
one at a time and it doesn't recognize labquestion1 ...
Next
'Me.Controls.Add(lab)
Thanks for any help
I'm trying to write a simple multiplication tables program for my little
girl.
How can I create 200 labels, 100 textboxes.
Here is what I've tried so far (without luck).
For looper As Int16 = 1 To 101
Dim lab As New Label
lab.Name = "labQuestion" & Format(looper)
Me.Controls.Add("labQuestion" & Format(looper)) 'seems I can only add them
one at a time and it doesn't recognize labquestion1 ...
Next
'Me.Controls.Add(lab)
Thanks for any help