title: How can I determine if the Backspace has been pressed in the KeyPress event?
body: <p>This:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress.aspx">http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress.aspx</a></p>
  
  <p>...indicates that I should have access to e.KeyCode in the KeyPress event, but I don't seem to. I'm trying to allow only 1,2,3, and backspace:</p>
  
  <pre><code>private void textBoxQH1_KeyPress(object sender, KeyPressEventArgs e) {
    if ((e.KeyChar != '1') &amp;&amp;
        (e.KeyChar != '2') &amp;&amp;
        (e.KeyChar != '3') &amp;&amp;
        (e.KeyChar != (Keys.Back))) {
      e.Handled = true; 
    }
  }
  </code></pre>
  
  <p>...but "e." does not show a "KeyCode" value like the example shows, and trying KeyChar with Keys.Back scolds me with, "Operator '!=' cannot be applied to operands of type 'char' and 'System.Windows.Forms.Keys'"</p>
  
  <p>So how can I accomplish this?</p>