title: Disable beep of enter and escape key c#
body: <p>I want to disable the beep sound that i get when i press enter in a <code>textbox</code>. My <code>KeyDown</code> event is:</p>
  
  <pre><code> private void textBox_Zakljucak_KeyDown(object sender, KeyEventArgs e)
          {
  
              if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Tab))
              {
                  Parent.SelectNextControl(textBox_Zakljucak, true, true, true, true);
              }
              else if ((e.KeyCode == Keys.Back))
              {
                  textBox_Zakljucak.Select(textBox_Zakljucak.Text.Length, 0);
              }
              else if (!Regex.IsMatch(textBox_Zakljucak.Text, @"^[0-9.-]+$"))
              {
                  textBox_Zakljucak.Clear();
                  textBox_Zakljucak.Select(textBox_Zakljucak.Text.Length, 0);
              }
      }
  </code></pre>