mfc >> R: service and systray

by Gaetano Sferra » Wed, 26 Nov 2003 21:48:03 GMT

> is it possible to set a systray icon when a service has started and the
> systray exists?

Yes... you can develop an interactive service... take a look in MSDN




Similar Threads

1. service and systray

hi!

is it possible to set a systray icon when a service has started and the
systray exists?

thanks, philipp


2. Systray popup menu overlaps with Windows systray menu

3. How to add Systray icon when writing windows service using c#

I can add a systray icon in normal windows application...
but when i do it in windows service, the systray icon just don't show up

is that because i don't have any "component" to contain the systray icon?
please give direction...

thx



4. Create a windows service with Icon in Systray

5. Using the systray in services

How can I process systray messages in a windows service?I need to display
an icon in the systray when the service is running, and remove it when it's
stopped, but the systray requires a handle to window where to send messages
when the icon is clicked or needs to be redrawn, and a service doesn't have 
one.

Bogdan. 


6. systray ( With Code ) - CSharp/C#

7. Terminating Systray Application On Shutdown does not work (it does not exit the app)

I have written an application that lives in the systray but when I try
to close windows or logout it does not close my application and
therefore prevents windows from shutting down or logging me out. It is
essential that I solve this problem but I have run out of ideas can
anyone help (please!)

The application starts in Start.cs which kicks off the Systray form
using this call:
    Application.Run(new Systray()); 

Systray is a mimized form that is not visible in the TaskBar but has a
NotifyIcon which sits in the systray. Associate with the icon is a
context menu with a Terminate command in it i.e. Application.Exit();
and that works fine.  Presumably windows must send some sort of
terminate message to all running applications and I need to capture
that?  Can I use one of the standard events or do I need to use the
windows WndProc?

Any suggestions of where to look would be greatly appreciated.

Regards, Jon

8. systray - CSharp/C#