这是我的代码
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
我有 5 个文本框。我只想用数组值填充 textbox1 和 textbox2 。因为不,我不得不说。但是当我在和上运行代码"str1"
重复textbox1
时textbox2
textbox3