winform窗体在全屏的时候怎么按esc键退出

2025-03-13 21:01:44
推荐回答(1个)
回答1:

在窗体中添加一个按钮 btn1 在btn1的按钮的单击事件中写:this.close(),设置窗体的cancelbutton 为btn1