Run one instance from the application

前端 未结 7 947
盖世英雄少女心
盖世英雄少女心 2020-12-16 06:49

I have a windows application (C#) and i need to configure it to run one instance from the application at the time , It means that one user clicked the .exe file and the appl

7条回答
  •  [愿得一人]
    2020-12-16 07:20

    Edit : After the question was amended to include c#. My answer works only for vb.net application

    select the Make single instance application check box to prevent users from running multiple instances of your application. The default setting for this check box is cleared, allowing multiple instances of the application to be run.

    You can do this from Project -> Properties -> Application tab

    Source

提交回复
热议问题