foreach (Control item in this.groupBox2.Controls)
            {
                if (item is TextBox)
                {
                    if (item.Text.Trim() == "")
                    {
                        MessageBox.Show("文本框不能为空!", "提示");
                        return;
                    }
                }
            }

 

相关文章:

  • 2021-08-14
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2021-07-30
相关资源
相似解决方案