//遍历form中的控件查找哪个RadioButton是否被选中
            foreach (Control control in this.form.Controls)
            {
                if (control is RadioButton)
                {
                    //如果Checked
                    if ((control as RadioButton).Checked == true)
                    {
                       //TODO
                    }
                }
            }

 

相关文章:

  • 2021-12-02
  • 2022-01-09
  • 2021-11-20
  • 2021-06-07
  • 2021-12-01
  • 2021-10-19
  • 2022-12-23
猜你喜欢
  • 2021-09-30
  • 2022-01-09
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
相关资源
相似解决方案