SyntaxFix
Write A Post
Hire A Developer
Questions
there you go.
private void YurTextBox_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { YourButton_Click(this, new EventArgs()); } }