Results 1 to 4 of 4

Thread: window service show notifyicon

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    2

    window service show notifyicon

    how can we show notifyicon when window service we create is running?
    It is can done in window Service?

  2. #2
    Addicted Member
    Join Date
    Sep 2004
    Posts
    133

    Re: window service show notifyicon

    The best method is to write a seperate EXE that will interact with your service.

    Get the 101 Visual Basic and C# Code Samples at:
    http://www.microsoft.com/downloads/d...displaylang=en

    Look at the sample: Advanced .NET Framework - Interacting with a Windows Service

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    2

    Re: window service show notifyicon

    thanks.

    if i wan notification bar will show window application icon when my service is running. For example, SQL Server Service manager, when i reboot/restart my pc, the icon automatic show in notification bar. SO, got any idea to do this?

    Thank You
    S3NG

  4. #4
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718

    Re: window service show notifyicon

    You are still better off using a separate application, that's how SQL server does it (Because, how could it report it's not running, if it's not running?) You can override this by setting Allow service to interact with desktop in the service's properties, but this is highly not recommended, your services should NOT provide a UI, that's the point in a service, a object that runs all the time that does not require a UI. If you wish to interact with the service from a UI level, then you should consider remoteing or various other technologies to connect to the service.
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width