当现在了CheckBox1时候 RadioButton 才能够选择     如没有选择CheckBox1 RadioButton 不能够选择
   
     RadioButton 如有2个只能选择一个!

解决方案 »

  1.   

    在check选择事件里  checked==true 是 让RadioButtonList 可用,否则不可用 RadioButtonList 可以实现只能选其中一个
      

  2.   

    这个很简单啊。
    if(CheckBox1.Checked==true)
    {
        RadioButton.Enable=true;
    }
    else
    {
        RadioButton.Enable=false;
    }
    至于两个RadioButton只能选一个,设置它的GroupName属性为同样的值就可以了。
      

  3.   


    RadioButton 设置它的GroupName属性为同样的值  或者用RadioButtonList 也可以
      

  4.   

    if (CKJFK.Checked == true)
                {
                    RBJFK_XFCS.Enabled = true;
                    RBJFK_XFJE.Enabled = true;
                    if (RBJFK_XFCS.Checked == true)
                    {
                        RBJFK_XFJE.Enabled = false;
                    }
                    else
                    {
                        RBJFK_XFCS.Enabled = true;
                    }
                }
                else
                {
                    RBJFK_XFCS.Enabled = false;
                    RBJFK_XFJE.Enabled = false;
                }  为什么选中了CKJFK的CheckBox1 下面的RBJFK_XFCS 的RadioButton 不能够选择????