Windows service with client interaction

  • Thread starter Thread starter manuel.ricca
  • Start date Start date
M

manuel.ricca

Hello,

I'm just starting to code a windows service in C#.
My service needs to create multiple threads, each one responding to
TAPI events. Then I will need to have a client connect to it for
administration. Finally, an icon in the system tray would be nice.

Can anyone tell me more or less how to do this? Is there some sample
from where I can take the basic "structure" of the application?

Thanks in advance,
MR
 
Sounds like you need two projects in your solution:

1) Windows Service
2) Windows Form

In order for you Windows Form to interact with your Service you need a
mechanism for passing messages back and forth between the two, as you
cannot talk directly to the Windows Service.

As for the NotificationIcon in the tray, check out the article at
http://www.developer.com/net/csharp/article.php/3336751 for help adding
the tray icon to your Windows Form app.

Hope that helps.

Patrick Altman
<><
 
Back
Top