各位老师,请问如何用字符串和数字表示控件名,例如在窗体上有10个textbox控件textbox0—textbox9,请问如何用字符串“Textbox”和整数型变量i组合分别表示这10个textbox:
Dim txt as contril
Dim i as Short
for i=0 to 9
txt=????????
next
让txt分别设置成textbox0—textbox9,谢谢,请指教
Private Sub TextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged, TextBox1.TextChanged Dim txt As String = "" txt = txt + Me.Text