1,按下Enter触发事件 private void txt_UserId_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { //或者其他事件 this.btn_Login_Click(null, null); } } 2,Tab切换顺序,依次点击控件即可 来源:https://www.cnblogs.com/baozi789654/p/12573335.html 标签 窗体 enter