C# 检查panel所有的checkbox 是否被选中

 

foreach (Control c in panel Controls)
            {
                if (c is CheckBox && ((CheckBox)c).Checked == true)
                {
                    MessageBox.Show(c.Tag.ToString());
                }
            }

 

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
猜你喜欢
  • 2021-12-09
  • 2021-12-01
  • 2021-12-07
  • 2021-10-05
  • 2021-12-09
  • 2021-12-09
相关资源
相似解决方案