Allow only one application instance

Norak picture Norak · Apr 24, 2013 · Viewed 14k times · Source

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.

Answer

Geoff picture Geoff · Apr 24, 2013

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:

enter image description here