我记得在vb6中你能够创建文本框数组.
Textbox1(0), Textbox1(1) ..... ,
Run Code Online (Sandbox Code Playgroud)
但是在vb.net中你无法创建数组?所以如果你有这样的代码.是否有可能将其设置为for循环?
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = ""
TextBox14.Text = ""
TextBox15.Text = ""
Run Code Online (Sandbox Code Playgroud) vb.net ×1