vb.net 只允许一个应用实例
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16196424/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Allow only one application instance
提问by Norak
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.
我很抱歉我的标题可能会让你感到困惑(只是我不知道我应该使用什么词)。我的问题是我不想让用户多次打开我的应用程序。请帮忙。先感谢您。
回答by Geoff
Use the “Make single instance application” flag; in the solution explorer, right-click the project and select properties. See this questionfor more details.
使用“制作单实例应用程序”标志;在解决方案资源管理器中,右键单击项目并选择属性。有关更多详细信息,请参阅此问题。
MSDN documentation here.
MSDN 文档在这里。
Screenshot:
截屏:


回答by Amr Moussa
Use the “Make single instance application” flag; in the solution explorer
使用“制作单实例应用程序”标志;在解决方案资源管理器中

