Allow only one instance of the application

I'm sorry that my title may be vague (I just don’t know what words I should use). My problem is that I do not want to allow the user to open the application several times. Please help. Thank you in advance.

+7
source share
3 answers

Use the "Make one instance application" flag; in the solution explorer, right-click the project and select properties. See this question for more details.

MSDN documentation is here .

Screenshot:

enter image description here

+17
source

Use the "Make one instance application" flag; in the solution explorer

0
source

since I can not comment on the post that asks the question in the answer section

my question is the same as above but some additional clarifications

consider it as an example, I made a general project for addition, multiplication and division with 3 different exe

in coding, I named 3 different classes for 3 different operations, but the GUI form is the same

based on user choice, if I want to open exe add-on, so I have to limit this exe, exe add-on should be open once

If you understand the problem, please help me

0
source

All Articles