16,718
社区成员
发帖
与我相关
我的任务
分享foreach (Control c in this.controls)
{
if (c is TextBox)
{
MessageBox.Show("it;s TextBox!");
}
}foreach (Control c in this.controls)
{
if (c.GetType() == typeof(TextBox))
{
MessageBox.Show("it;s TextBox!");
}
}