1 private void Form1_KeyPress(object sender, KeyPressEventArgs e) 2 { 3 if (e.KeyChar == (char)13)4 { 5 ... 6 } 7 }