how can we show notifyicon when window service we create is running?
It is can done in window Service?
Printable View
how can we show notifyicon when window service we create is running?
It is can done in window Service?
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
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
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.