single instance and notify in system tray

后端 未结 4 1614
眼角桃花
眼角桃花 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 10:01

    You need a form of interprocess communication, to signal to the other instance that it should display the messagebox.

    In this instance, you could go one better than telling the existing instance to display the message, and instead tell it to restore it's main window (i.e. "unminimise").

提交回复
热议问题