日期:2014-05-17 浏览次数:20751 次
string theName = "textBox1"; foreach (var item in this.Controls.Find(theName, false)) { if (item is TextBox) { TextBox tb = item as TextBox; MessageBox.Show(tb.Text); break; } }