摘要: 设置窗体属性KeyPreview=True。private void Form1_KeyUp(object sender, KeyEventArgs e){ if (e.KeyData == Keys.Escape)Application.Exit();}来自:http://zhidao.baidu.com/question/17393332.html 阅读全文
posted @ 2013-01-12 19:33 混蛋程序员 阅读(840) 评论(0) 推荐(0)