MessageBox.Show("  请您确认    \n \n前方无车辆驶入    ", "手动落杆", MessageBoxButtons.OK, MessageBoxIcon.Warning);这段代码执行时弹出一个对话框,用鼠标点击或者用键盘上的enter键可响应。
问题是,现在配置的键盘是特制的键盘,没有回车键。也不允许使用鼠标。那如果要响应MessageBox中的确认按钮可使用其他键来响应吗?
例如使用q键响应,应该如何设置呢。或者有其他的思路也行?