Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //已知Form上面共有三個TextBox Control
- //分別為TextBox1 、TextBox2 、TextBox3
- for (int i = 1; i <= 3; i++)
- {
- TextBox tmpTextBox = (TextBox)(this.Controls.Find("textBox" + i, true).FirstOrDefault());
- tmpTextBox.Text = i.ToString();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement