title: C# VS - When one radio button is checked, uncheck another
body: <p>I have a form, on which i placed 2 radio buttons. My issue is I need it to function in a way where if one is clicked, the other will be unclicked. I have the following code however it gets stuck in an inifinite loop once you do the first click and I do understand why. Wanted to see if any of you guys know how to go about making this in c#? I'm fairly new to c#</p>
  
  <pre><code>public partial class Form1 : Form
  {
      public Form1()
      {
          radAllCols.CheckedChanged += new EventHandler(this.radAllCols_Checked);
          radSelCols.CheckedChanged += new EventHandler(this.radSelCols_Checked);
      }
  
      private void radAllCols_Checked(object sender, EventArgs e)
      {
          if (radAllCols.Checked == true)
          {
              radAllCols.Checked = false;
              radSelCols.Checked = true;
          }
      }
  
      private void radSelCols_Checked(object sender, EventArgs e)
      {
          if (radSelCols.Checked == true)
          {
              radSelCols.Checked = false;
              radAllCols.Checked = true;
          }
      }
  }
  </code></pre>