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.
2
-
1Why not? This is a very annoying thing to do to a user. – SLaks Apr 24 '13 at 15:46
-
2@SLaks: It's not entirely unreasonable; ever try to open a second instance of Skype? Personally there are some cases where it would be more annoying to get a new instance rather than be dropped into an existing one. – Geoff Apr 24 '13 at 16:11
Add a comment
|
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 documentation here.
Screenshot:
Use the “Make single instance application” flag; in the solution explorer