Creating a loop that will edit 60 TextBox names?

前端 未结 4 1268
傲寒
傲寒 2021-01-26 05:27

text box set1 = 1 to 30 = in the query name = br1id to br30id

textbox set 2 = 1 to 30 = in the result output

i dont understand how to create a loop based on 30

4条回答
  •  不要未来只要你来
    2021-01-26 06:07

    Here's how to get a control by name inside a Form:

            // get control by name:
            TextBox tb = this.Controls["textBox1"] as TextBox;
            if (tb != null) {
                // your code here
            }
    

提交回复
热议问题