C#遍历控件

//遍历TextBox控件

foreach (Control item in this.Controls)
            {
                if (item is TextBox)
                {
                    item.Text = "";
                }
            }

猜你喜欢

转载自www.cnblogs.com/HarryChis/p/10409754.html