标签:c# enter
private void textBox1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { this.button1_Click(sender, e); } }
文本框输入完毕后,点击Enter触发按钮Click事件
原文地址:http://blog.csdn.net/crazygolf/article/details/39231227