Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

I have a windows service which will run automatically in the background, and have placed a notify icon in the service, which has a context menu assigned to it.

 

However, when I run the service, and left-click on the icon, no context menu shows - the service is running under 'Local System' and I have given it full .NET trust...

 

Does anyone have any ideas why this is happening?

 

Thanks.

:) Mike :)

 

He who has a secret, must keep it secret he has a secret to keep......

Posted

Just to get some facts right...

You have a windows service that runs in the background, and have a notify icon assigned to it... Is the notify icon compiled into the service, or is it another application that talks to the service.

 

Remember that windows services do not interact well with forms or the desktop in a UI sence. To use a notify icon you need to have two programs. One is the service and the other is the moneitoring app. Then you need to work out a way for them to talk together (I would recomend using remoting). Then you would process events on the two apps that would publish to the other through the remoting system. This is how the service controller for SQL and MSDE Work.

 

Hi,

 

I have a windows service which will run automatically in the background, and have placed a notify icon in the service, which has a context menu assigned to it.

 

However, when I run the service, and left-click on the icon, no context menu shows - the service is running under 'Local System' and I have given it full .NET trust...

 

Does anyone have any ideas why this is happening?

 

Thanks.

 

Jus

Glenn "Mykre" Wilson, DirectX MVP

Inner Realm

Managed DirectX and Game Programming Resources

Posted

Thanks a lot - I'll look into remoting.

 

I'm a programmer who has just recently migrated to .NET, and so it could take me a while to finish this project!!

:) Mike :)

 

He who has a secret, must keep it secret he has a secret to keep......

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...