title: How to prevent firing CheckedChanged event when checking a control programmatically?
body: <p>How do I prevent firing CheckedChanged event when checking a control programmatically?</p>
  
  <p>I usually do this the following way.</p>
  
  <pre><code>private bool isFrozen = false;
  
  private void btn1_CheckedChanged(object sender, EventArgs e)
  {
      if (isFrozen) 
          return;
  
      isFrozen = true;
      btn2.Checked = false;
      isFrozen = false;
  
      // Do some stuff
  }
  
  private void btn2_CheckedChanged(object sender, EventArgs e)
  {
      if (isFrozen) 
          return;
  
      isFrozen = true;
      btn1.Checked = false;
      isFrozen = false;
  
      // Do another stuff
  }
  </code></pre>
  
  <p>Is there a better or more common solution?</p>