0
我在按下文本框中的Enter鍵時消除了蜂鳴聲的問題。c#避免在KeyDown按下發出嗶嗶聲?
這不起作用:
private void textBox3_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
e.SuppressKeyPress = true;
button1.PerformClick();
}
}