在VS11应用程序关闭按钮 [英] Close Button on VS11 Apps
本文介绍了在VS11应用程序关闭按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图创建在Windows 8与VS 11用C#应用程序,我需要在我的应用程序一个按钮,当人们点击这个按钮,我的应用程序会关闭。
I try to create an Application on Windows 8 with VS 11 with C#, And I need to a Button in my App that when people Click on this button , my App going to Close.
但我不能找到任何退出或关闭功能添加到我的Click事件。
But I can't find any Exit or Close function to add, to my Click Event.
我怎样才能让这个按钮?或者你有什么建议,解决这一问题。
how can I make this button? or what is your proposal to solving this Problem?
推荐答案
如果你不关心认证 - 例如你想在自己的调试构建一个关闭按钮,以帮助您的测试 - 你可以调用Application.Current.Exit()
If you don't care about certification - e.g. you want a close button in your own debug build to help you with testing - you can call Application.Current.Exit()
这篇关于在VS11应用程序关闭按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文