title: TextBox - TextChanged event Windows C#
body: <p>I am stuck into a problem and need inputs. Here is the description -</p>
  
  <p>I have a <code>txtPenaltyDays</code> in windows form C#</p>
  
  <pre><code>private void txtPenaltyDays_TextChanged(object sender, EventArgs e)
  {
    if(Convert.ToInt16(txtPenaltyDays.Text) &gt; 5)
    {
      MessageBox.Show("The maximum amount in text box cant be more than 5"); 
      txtPenaltyDays.Text = 0;// Re- triggers the TextChanged 
    }
  }
  </code></pre>
  
  <p>But I am running into problem because this fires 2 times. Because of setting the text value to 0.
  My requirement is that it should fire only one time and set the value to 0.</p>
  
  <p>Any suggestion is deeply appreciated.</p>