Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2004

Tip: Looking for answers? Try searching our database.

Icon in tray with Windows Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Clay Wilcox - 15 Oct 2004 21:10 GMT
How can i get an icon in the tray to allow for service
control/configuration?  I have tried allow service to interact, but it
didn't work like i wanted, i could see the icon but i couldnt do anything
with the context menu.

TIA.
Herfried K. Wagner [MVP] - 15 Oct 2004 21:53 GMT
"Clay Wilcox" <cwilcox@community.nospam> schrieb:
> How can i get an icon in the tray to allow for service
> control/configuration?  I have tried allow service to interact, but it
> didn't work like i wanted, i could see the icon but i couldnt do anything
> with the context menu.

The common pattern is to develop a Windows service and a separate Windows
Forms application that provides the UI for the service.  There are different
ways to set up communication between the service and the UI application, for
example remoting or sockets.

Signature

Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/

"Jeffrey Tan[MSFT]" - 18 Oct 2004 04:29 GMT
Hi Clay,

Based on my understanding, you want to implement a system tray to config
and control certain windows service.

To control the normal behavior of windows service, we may use create a
winform application, then use ServiceController to control its stop or
start etc, for more information, please refer to:
"Controlling a Windows Service from the System Tray"
http://www.devcity.net/net/article.aspx?alias=servicecontroller

Also, we may listen the status of windows service
"Windows Service State Publisher"
http://www.codeproject.com/csharp/ServiceStatePublisher.asp

But if you want to do more communication with Windows service in a UI
component, just as Herfried said, we should do the communication through
cross process pattern, then use remoting to do the connection.
=======================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.