Tried several ways, can't figure out how to disable the 'ding' sound. I know this is basic, but I really can't figure it out. Any advice is greatly appreciated
This is my button press event.
Code:private void txtResult_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (!String.IsNullOrEmpty(txtResult.Text)) { btnCheckAnswer.PerformClick(); e.SuppressKeyPress = true; e.Handled = true; } } } This is one of the btnCheckAnswer.PerformClick() actions } } } else { numRight++; MessageBox.Show("Smarty Pants, You're Right!!"); NextQuestion(); IncreaseScore(); } return; } }




Reply With Quote
