C#中如何获取radioButton的值

 if(radioButton1.Checked)   
  
{   
      
//   
  }
   
  
else   
  
{   
  }
   
  要不就遍历groupBox1吗?   
  
foreach(Control   c   in   groupBox1.Controls)   
  
{   
  
if(c   is   RadioButton)   
  
{   
  
if(((RadioButton)c).Checked)   
  
{   
  MessageBox.Show(c.Name);   
  }
   
  }
   
  }
   
posted @ 2008-07-12 19:15  梦极无边界  阅读(5067)  评论(0)    收藏  举报