title: Stop the 'Ding' when pressing Enter
body: <p>I have a very simple Windows Forms Application. And, in Windows (or, atleast Windows Forms Applications), when you press Enter while inside a Single-line TextBox Control, you hear a Ding. It's an unpleasent sound, that indicated you cannot enter a newline, because it is a single-line TextBox.</p>
  
  <p>This is all fine. However, in my Form, I have 1 TextBox, and a Search Button. And I am allowing the user to Perform a search by pressing Enter after they've finished typing, so they don't <em>have</em> to use the mouse to click the Search Button.</p>
  
  <p>But this Ding sound occurs. It's very annoying.</p>
  
  <p>How can we make it so just that sound doesn't play at all in my Form?</p>
  
  <p>@David H - Here's how I'm detecting the enter pressing:</p>
  
  <pre><code>private void textBox1_KeyUp(object sender, KeyEventArgs e)
  {
      if (e.KeyCode == Keys.Enter)
      {
          // Perform search now.
      }
  }
  </code></pre>