Single instance and system tray notification

I am working on an application (C # 2.0). I implemented one instance in it. Everything is fine. If I run the application again, it displays a message with the message "the instance is already running."

Actually, I don’t want to show the message through the message box.

I want to show this message using the Balloon tooltip of an already running instance (it indicates the icon in the system tray).

How can i achieve this?

Thanks in advance.

+3
source share
4 answers

You need an interprocess communication form to tell another instance that it should display a message.

, , , (.. "unminimise" ).

+4

WCF .

NetPipe, invode .

0

CodeFluent Runtime, , SingleInstance :

You just have to override the WndProc method to pop up your notification (Baloon hint).

0
source

Source: https://habr.com/ru/post/1714793/


All Articles