single instance and notify in system tray

后端 未结 4 1616
眼角桃花
眼角桃花 2021-01-03 09:17

I am working on the application (C# 2.0). I have implemented single instance in it. Everything is fine. If i run the application again, it shows messagebox saying \"instanc

4条回答
  •  梦谈多话
    2021-01-03 09:49

    The easiest way to implement a single instance and to inform the first one if a second is started is already implement in .Net. Just take a look into the following links:

    Hanselman: Single Instance WinForms

    OpenWinForms (select True Single Instance application)

提交回复
热议问题