I am trying to capture the Enter key in a Windows Forms text box. I got this code snippet from the tutorial:
private void textBox1_KeyDown(object sender, KeyEventArgs e) {
but now my code is causing a compilation / assembly error:
The event 'System.Windows.Forms.Control.Enter' can only appear on the left hand side of += or -= Line 44 Column 84
For one thing, I do not understand the error message. On the other hand, line 44 is an empty line having only a newline character.
Any advice is appreciated.
Sincerely.
Kevin source share