This is my code
Dim str As String = "str1,str2"
Dim array() As String = str.Split(",")
Dim MyListOfTextBoxes() As TextBox = {TextBox1, TextBox2, TextBox3}
For index = 0 To array.Count - 1
For i = 0 To MyListOfTextBoxes.Length - 1
MyListOfTextBoxes(i).Text = array(index)
Next
Next
I have 5 textboxes. I want to fill just textbox1 and textbox2 with array value. because no I have to word. but when I run the code "str1" repetition on textbox1,textbox2 and textbox3.