.NETGURU
Windows Service and system tray
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-services' list.


Jim Toth

----- Original Message -----
From: "Alex Lowe" <Click here to reveal e-mail address>
To: "aspngfreeforall" <Click here to reveal e-mail address>
Sent: Wednesday, December 05, 2001 10:01 AM
Subject: [aspngfreeforall] RE: Windows Service and system tray

[Original message clipped]

Reply to this message...
 
    
Jim Toth
Can anyone point me in the direction of services that have a system tray
interface?

- Jim T.

----- Original Message -----
From: "Alex Lowe" <Click here to reveal e-mail address>
To: "aspngfreeforall" <Click here to reveal e-mail address>
Sent: Wednesday, December 05, 2001 10:01 AM
Subject: [aspngfreeforall] RE: Windows Service and system tray

[Original message clipped]

Reply to this message...
 
    
Rick Hodder
Jim,

Dot Net Guruhew is quite right - services are not supposed to have visual
interfaces. The visual interfaces associated with services are separate
programs that monitor the service (like the sql server example he gave you).

You could create a windows application that hides it main window and and
leaves its icon in the system tray, and load the program at startup.

You could then

Rick
--------------------------
Rick Hodder
Software Architect
GoAmerica Communications Corp.
(201) 996-1717 x2382
Click here to reveal e-mail address

-----Original Message-----
From: Jim Toth <Click here to reveal e-mail address>
To: ngfx-services <Click here to reveal e-mail address>
Sent: Wed Dec 05 13:34:22 2001
Subject: [ngfx-services] RE: Windows Service and system tray

Can anyone point me in the direction of services that have a system tray
interface?

- Jim T.

----- Original Message -----
From: "Alex Lowe" <Click here to reveal e-mail address>
To: "aspngfreeforall" <Click here to reveal e-mail address>
Sent: Wednesday, December 05, 2001 10:01 AM
Subject: [aspngfreeforall] RE: Windows Service and system tray

[Original message clipped]

| [ngfx-services] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngbeta.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Karell Ste-Marie
Jim,

    What's wrong with simply creating a service and then creating a
simple tray application that talk to the service using COM? It's the
prefered way to talk to services as I understand it.

    That's what I would do if I would be in your shoes, then again,
maybe you know something I don't.

Just a though

____________________________________
Karell Ste-Marie
C.I.O. BrainBank Inc. - MCSE, MCP+I

-----Original Message-----
From: Jim Toth [mailto:Click here to reveal e-mail address]
Sent: Wednesday, December 05, 2001 1:34 PM
To: ngfx-services
Subject: [ngfx-services] RE: Windows Service and system tray

Can anyone point me in the direction of services that have a system tray
interface?

- Jim T.

----- Original Message -----
From: "Alex Lowe" <Click here to reveal e-mail address>
To: "aspngfreeforall" <Click here to reveal e-mail address>
Sent: Wednesday, December 05, 2001 10:01 AM
Subject: [aspngfreeforall] RE: Windows Service and system tray

[Original message clipped]

| [ngfx-services] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngbeta.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Dot Net Guruhew Reynolds
Hi All,

There was another post about using COM to control the service. In .NET,
there are a couple of better techniques:

1. Publish a service interface using an object hosted in Remoting. The
advantage of this technique is that you would be able to access the "service
interface" from anywhere on the network or Internet. (Obviously, watch the
security on this.)

2. The System.ServiceProcess.ServiceController class allows you to control
any service, security permitting.
http://www.dot-net-guru.com/247reference/System/ServiceProcess/ServiceControlle
r.aspx

I personally think the first option has some interesting possibilities.

Of course, don't forget you could also create an MMC snap-in to provide a
management interface. AFAIK, there's no .NET-specific way of doing this, so
you'll need to get your head into interop.

Dot Net Guruhew
.Net Guru

-----Original Message-----
From: Rick Hodder [mailto:Click here to reveal e-mail address]
Sent: 05 December 2001 19:34
To: ngfx-services
Subject: [ngfx-services] RE: Windows Service and system tray

Jim,

Dot Net Guruhew is quite right - services are not supposed to have visual
interfaces. The visual interfaces associated with services are separate
programs that monitor the service (like the sql server example he gave you).

You could create a windows application that hides it main window and and
leaves its icon in the system tray, and load the program at startup.

You could then

Rick
--------------------------
Rick Hodder
Software Architect
GoAmerica Communications Corp.
(201) 996-1717 x2382
Click here to reveal e-mail address

-----Original Message-----
From: Jim Toth <Click here to reveal e-mail address>
To: ngfx-services <Click here to reveal e-mail address>
Sent: Wed Dec 05 13:34:22 2001
Subject: [ngfx-services] RE: Windows Service and system tray

Can anyone point me in the direction of services that have a system tray
interface?

- Jim T.

----- Original Message -----
From: "Alex Lowe" <Click here to reveal e-mail address>
To: "aspngfreeforall" <Click here to reveal e-mail address>
Sent: Wednesday, December 05, 2001 10:01 AM
Subject: [aspngfreeforall] RE: Windows Service and system tray

[Original message clipped]

| [ngfx-services] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngbeta.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [ngfx-services] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngbeta.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
 
System.ServiceProcess.ServiceController




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification