title: Annoying beep when I hit enter in a textbox
body: <p>I'm trying to have some stuff happen when a user presses enter in a textbox, and it works, but it makes a very annoying DING windows error sound when I do. I've looked up my problem, and apparently adding <code>e.SuppressKeyPress = true;</code> before the stuff, and <code>e.Handled = true;</code> after the stuff, but my program still makes the sound. This is the code I'm using:</p>
  
  <pre><code>private void textBox1_KeyUp(object sender, KeyEventArgs e)
  {
      e.SuppressKeyPress = true;
      if (e.KeyCode == Keys.Enter)
      {
          // A bunch of stuff goes here that I want to 
          // happen when the user hits enter               
      }
      e.Handled = true;
  }
  </code></pre>
  
  <p>Am I doing something wrong? This is what the other people said you have to do, but it's not working for me for some reason...</p>
  
  <p>Thanks!</p>