Below is my code for disabling beep sound when I press "Enter" on textbox KeyDown()
event:
if (e.KeyCode == Keys.Enter)
{
e.SuppressKeyPress = true;
SaveData();
e.Handled = true;
}
But it keeps beeping when I press "Enter" on textbox. What am I doing wrong?
Handled
andSuppressKeyPress
to true, but it's not working. – firefalconTextBox
or the form. – Sinatr