من اینارو داخل یک تابع گذاشتم مانند زیر ولی باز هم صدای دینگ شنیده میشه
کد:
void cli()
{
Button1.Focus();
string sender1 = "";
EventArgs e1 = new EventArgs();
this.Button1_Click(sender1, e1);
}
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 13)
{
cli();
}
}