日期:2014-05-17 浏览次数:20997 次
var emptyTextBoxs = groupBox1.Controls.OfType<TextBox>().Where(x => x.Text == ""); foreach (var item in emptyTextBoxs) { MessageBox.Show(item.Name + "是空的"); }