foreach(Control control in this.form1. Controls)
{
if(control is TextBox)
{
TextBox tb=(TextBox)control;
tb.Text=string.Empty;
}
}
本文共 201 字,大约阅读时间需要 1 分钟。
foreach(Control control in this.form1. Controls)
{
if(control is TextBox)
{
TextBox tb=(TextBox)control;
tb.Text=string.Empty;
}
}
转载于:https://www.cnblogs.com/xiaochen88/archive/2012/12/25/2832420.html