仅允许一个应用程序实例 [英] Allow only one application instance
本文介绍了仅允许一个应用程序实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
很抱歉,我的标题可能会让您感到困惑(只是我不知道应该使用哪些词).我的问题是我不想允许用户多次打开我的应用程序.请帮忙.预先谢谢你.
I'm sorry about my title may be it make you confusing (it's just I don't know what words should I use). My problem is I don't want to allow user to open my application multiple time. Please help. Thank you in advance.
推荐答案
使用制作单实例应用程序"标志;在解决方案资源管理器中,右键单击该项目,然后选择属性.有关更多详细信息,请参见此问题.
Use the "Make single instance application" flag; in the solution explorer, right-click the project and select properties. See this question for more details.
MSDN文档此处.
屏幕截图:
这篇关于仅允许一个应用程序实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文