radioButton1,radioButton2
如何设置radioButton的取值 取的时候怎么取?
本人初学C# 不会 大家给讲讲  在线等

解决方案 »

  1.   

    取值?
    是确定选中状态吗?
    用 radioButton1.Checked
    返回的是bool值
      

  2.   

    你可以把它的值放到radioButton里的Tag属性里!
    如果选中了(radioButton.Checked==true)时取Tag里的值就好了!
      

  3.   

    取什么值?无非是选中还是未选中吧..参见RadioButton的Checked属性..
      

  4.   

    是啊,radiobutton 的checked属性啊,他是个bool值,true为选中,false为未选中
      

  5.   

    楼主估计是要问如何将两个radiobutton关联起来
      

  6.   

    把RadioButton的
     GroupName属性设为同一个
      

  7.   

    RadioButton 有两中状态。Checked 为 true 或者 false;用RadioButton.Text能取到显示的值。
      

  8.   

    RadioButton的
     GroupName属性怎么设置啊 ?
      

  9.   

    if(radioButton1.Checked)
    {
    ...
    }
    else
    {...}
      

  10.   

    if(RadioButton1.checked)
      string Values=Radio.Button1.text;