Service application and NotifyIcon

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello:

Does somebody know if NotifyIcon work with service app.

I have exactly the same code that displays balloon in Windows appl,
but doesn't display ballon when called from service.OnStart().

Service is LocalSystem and manual.

thank you,

dave
 
Under normal conditions, a Windows Service does not interact with the Desktop
or show any visible UI elements. So the short answer is, no. There are ways
around this, but in general, if you don't understand why it doesn't work at
this point, it's better not to try and use them. A service is designed to
start with the OS before any user is logged in to see the notifyIcon anyway.
Pete
 
Peter said:
Under normal conditions, a Windows Service does not interact with the Desktop
or show any visible UI elements. So the short answer is, no. There are ways
around this, but in general, if you don't understand why it doesn't work at
this point, it's better not to try and use them. A service is designed to
start with the OS before any user is logged in to see the notifyIcon anyway.
Pete

And under Windows Vista IIRC, a service will no longer be able to
interact with the desktop so there won't be a way around it in Vista.
 
You might want to consider the approach of writing a totally separate
application that uses the ServiceController to interact with your
service.
 
Back
Top