How do you start a System Tray application from a Windows Service c#?

How do you start a System Tray application from a Windows service?

I know how to check to see if it is running. I use -


Code:
Process[] p = Process.GetProcessesByName("processName");

if (p.Length > 0)
{
   //Is running
           .
           .
}
KABarrieAsked:
Who is Participating?
 
DocSeltsamCommented:
Hi there,

it depends on how you run the windows service.
Normally, the service runs as 'LocalSystem' and can in no case communicate with the desktop
of a logged in user. If you set 'Can interact with the desktop' in the services settings,
you are able to communicate with the desktop of the logged in user.

Mostly, if you want to establish a communication between a service and the local user,
you need to start another process on startup within the runtime enviroment of the
local user. This process can of course put its icon in the tray area and then comunicate
with the service via named pipes or maybe TCP/IP.

--TheDoctor
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.