实现效果: 知识运用: KeyEventArgs类的KeyValue属性 public int KeyValue {get;} //获取KeyDown或KeyUp事件的键盘值 SendKeys类的Send方法实现代码: private void textBox2_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue == 13) { SendKeys.Send("{TAB}"); } }