WPF 程序Demo
// //工单单号输入 // private void txb_OrderID_KeyUp(object sender, System.Windows.Input. KeyEventArgs e) { if (e.Key == System.Windows.Input.Key.Enter) { //执行代码
}
}
WinForm 程序 Demo
// //txt_OrderID_KeyUp
// private void txt_OrderID_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { //执行代码
}
}