title: Restricting Input to Numbers Only In Textbox? (c#)
body: <p>Please excuse me for asking this, I have looked at various different questions relating to this and I still can not get it to implement.</p>
  
  <p>Using the answers I have looked at, I have gathered this, and applied this coding to my text box.</p>
  
  <pre><code>private void TxtBox5_KeyPress(object sender, KeyPressEventArgs e)
      {
          if (!(Char.IsDigit(e.KeyChar) || (e.KeyChar == (char)Keys.Back)))
              e.Handled = true;
      }
  </code></pre>
  
  <p>Now, when I proceed to run the program, I am still able to enter letters into it. I do not know what to do next, so any solution would be great. thanks.</p>