Hello,
How can I disable beep sound in KeyDown event?
I already tried using "e.Handler = true" but it doesn't seem to work. I have used it sucessfuly with KeyPress events, but now with KeyDown I can't get it work...
This is my code:
private void msg_textbox_KeyDown(object sender, KeyEventArgs e)
{
switch(e.KeyCode){
case Keys.Return:
send_button.PerformClick();
e.Handled = true;
break;
case Keys.Up:
msg_textbox.Text = history.Up();
e.Handled = true;
break;
case Keys.Down:
msg_textbox.Text = history.Down();
e.Handled = true;
break;
}
}
Thanks in advance for you attention.