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

Posted on 2011-05-03
Last Modified: 2012-05-11
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
Question by:KABarrie
    1 Comment
    LVL 8

    Accepted 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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
    Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now