如何实现按下某个键后即引发某过程(C#)
来源:百度知道 编辑:UC知道 时间:2024/06/29 01:24:10
就像powerpoint中,用方向键可以滚动幻灯片那样
那你就要在你的form_KeyPress事件中自己写一段代码
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 'a')
{
MessageBox.Show("aaaaa");
}
}