Looping to write to textboxes, looping to read from text boxes
===

Ok so i have some textboxes for example Textbox1 Textbox2 Textbox3

I need to loop and store a unique value for each one i am using

        For i As Integer = 1 To 3
            Dim MyVar As Integer
            MyVar = "1"
            Me.Controls.Item("Textbox" & i.ToString).Text = MyVar
        Next

I'm not sure why the line "Me.Controls.Item("Textbox" & i.ToString).Text = MyVar" is erroring.

Thank you.