foreach (Control cin this.Controls)
{
TextBox t = cas TextBox;
if (t !=null)
{
if (t.Text == "")
{
MessageBox.Show("信息不能为空!");
t.Focus();
return;
}
}
}
foreach (Control cin this.Controls)
{
TextBox t = cas TextBox;
if (t !=null)
{
if (t.Text == "")
{
MessageBox.Show("信息不能为空!");
t.Focus();
return;
}
}
}