• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 566
  • Last Modified:

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 -

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

if (p.Length > 0)
   //Is running
1 Solution
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.


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now