110,567
社区成员
发帖
与我相关
我的任务
分享
foreach (Control c in this.Controls)
{
GroupBox gbx = c as GroupBox;
if (gbx != null)
{
foreach (Control item in gbx.Controls)
{
TextBox tbx = item as TextBox;
if (tbx != null)
{
if (tbx.Text == "")
{
MessageBox.Show("内容不完整,无法保存!");
return;
}
}
}
}
}