I'm trying to lern VS 2010 from VB 6 and one of the things i'm hawing a problem whid is control array.

In vb 6 if you create a text box it's named "Text1" and if you yust copy it and paste it it renames to "Text1(0)" and the new one's name is "Text1(0)"

and the code would lock like this

Code:
Private Sub CMD1_Click()
  i=0
  do while i <=3
    R = Int(6 * Rnd + 1)
    Text1(i).Text = S
    i=i+1
  loop
End Sub
then it would print for each loop the random result in one of the text boxes corresponding to i.

How do i do this in VS 2010?