如何使退出按钮工作? [英] How to make an Exit Button work?
本文介绍了如何使退出按钮工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个退出按钮:
单击按钮在运行项目后关闭窗口。
如何使它在C#中工作。
谢谢提前
I have an Exit Button:
Click the button to close the window after Run Project.
How to make it work in C#.
Thanks advance
推荐答案
为按钮创建一个click事件,然后在那个事件中:
Window.close();
create a click event for the button, then in that event:
Window.close();
这篇关于如何使退出按钮工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文