How can i initialize VB contorls in a loop, e.g. how do I name a TabPage being created in a loop when I want to create and label an unkown number of them.
Like so,
where I want the i in PreWSi to be a number that corresponds to the loop index. I basically don't know how to get the i to label properly where the desired output is.....PHP Code:i = 2
For i = 2 To Pre_WS_Count
Dim PreWSi As New TabPage()
PreWSi.Text = "PreWS " & Str(i))
etc..
Next i
PreWS1
PreWS2
PreWS3
etc...




Reply With Quote