摘要:
一定要选中空间,在右下角的KeyDown属性双击出来的 private void textbox1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) button1_Click(null, null); }或者 private void TextBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r')... 阅读全文