Winform - 判断GroupBox控件中的TextBox文本框是不是为空
foreach (Control item in this.groupBox2.Controls)
{
if (item is TextBox)
{
if (item.Text.Trim() == "")
{
MessageBox.Show("文本框不能为空!", "提示");
return;
}
}
}
posted on 2015-06-25 12:50 ultrastrong 阅读(392) 评论(0) 收藏 举报
浙公网安备 33010602011771号