|
|
|
date: Mon, 25 Apr 2005 09:01:35 +0200,
group: microsoft.public.dotnet.myservices
back
Re: Service and NotifyIcon
The visible desktop does not belong to your service. The desktop is
created when a user logs on. The service may be running when no one is
logged on. Some will argue with me, but I would never allow the service
to interact with the desktop. IMHO it is possible to do, but highly
problematic.
Consider also the GINA logon screen is its own desktop. And if your
service would be to run on a terminal server, there may be many desktops.
Generally I put the notify icon in an application that starts when a
user logs on, and ends when they log off, and have it do client/server
communication with the service via .NET Remoting. I provide for the fact
there may be multiple instances of the notify icon app running on
different desktops as well (at least I do nothing to prevent it).
- Lee
Albert Krger wrote:
> Hello,
>
> I have tried some things with my windows service and the application:
> So far I have start the application 'minimized'. Now I start the application
> from the service as 'normal'. The application starts, but the form is not
> shown!
> I start the application by process.start() at the OnStart-Event of my
> windows-service.
>
>
> "Albert Krger" schrieb im Newsbeitrag
> news:OwOcHRWSFHA.3088@TK2MSFTNGP15.phx.gbl...
>
>>Hello,
>>
>>I have a service which starts an application with a NotifyIcon. When I
>
> start
>
>>the NotifyIcon from the service, the application starts but there is no
>>notifyicon. When I start the appication not from the service, the
>
> notifyicon
>
>>is shown. Where is the problem?
>>
>>Thanks
>>Albert Krger
date: Mon, 25 Apr 2005 11:55:09 -0700
author: Lee Gillie
|
|