Service application and NotifyIcon

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
 
G

Guest

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
 
C

Chris Dunaway

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

Rad

You might want to consider the approach of writing a totally separate
application that uses the ServiceController to interact with your
service.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top