C#:按下Enter键,自动执行Button1按钮
摘要:
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r') //判断是否按下Enter键 button1.Focus(); //将鼠标焦点移到"查询"按钮上 } 阅读全文
posted @ 2019-09-01 22:40
万马阳光
阅读(4021)
评论(0)
推荐(0)
浙公网安备 33010602011771号