mikewhorley
New member
- Joined
- May 29, 2011
- Messages
- 3
- Programming Experience
- Beginner
VB.NET:
Dim test As New List(Of Integer)
For Each ctrl In Me.GroupBox1.Controls
If TypeOf ctrl Is TextBox Then
test.Add(Convert.ToByte(ctrl.Text))
RichTextBox1.AppendText(ctrl.name)
End If
Next
Dim i As Integer
For i = 0 To (test.Count - 1)
RichTextBox2.AppendText(test(i))
Next i
My question being what determins the order that the textboxes are read. Example I have 4 textboxes named textbox1 to textbox4 When the code is run the output in richtextbox1 is textbox4textbox3textbox2textbox1. The output in richtextbox2 is 4321.
So here textbox1 = test(3) and textbox4 = test(0)