[newbie] Notify icon in interactive service

G

Gordon Jones

HI
I'm really a newbie to VB.NET programming and so this is
probably a newbie problem:

I want to create a interactive .net service that creates
a notifyicon at startup, so that the user can interact
with it (e.g. a double click on the icon in the systray
shall cause the service to react). So I placed such a
control in the service class and made it handle double
click events ..... but just nothing happens! When I
doubleclick the icon in the systray the appropriate code
in the service is not called and executed!!

Can anyone help me?

Thanks a lot,
Gordon
 
C

Cor

Hi Gordon,

When you are a newbie, I think it is more simple to make first a net
windowsforms application.

It automaticly places a icon in the tray
When the user clicks on it he can interact with it.

If you know that very well, you can see how you can use your new knowledge
go do the next challenge by instance a window service.

Just a thought.

Cor
 
G

Gordon Jones

I know how to build a windowsforms application, the
problem deals with a windows service and making an
interactable systray icon in a .net service.

Gordon
 
C

Codemonkey

Gordon,

Because of the security privileges associated with a service application
(and also the fact that there may be no logged on user when the service
starts - so no system tray), it is recommended that you create a small
windows form application to handle the tray icon.

You can then communicate to your service through remoting and control it
from the windows forms app. When a user logs on, your service would launch
this application, but would run independently of it - a bit like the way SQL
server and the SQL server Agent tray icon works.

Hope this helps,

Trev.
 

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