Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Mon, 25 Apr 2005 09:01:35 +0200,    group: microsoft.public.dotnet.myservices        back       


Service and NotifyIcon   
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 09:01:35 +0200   author:   Albert Krger

Re: Service and NotifyIcon   
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 09:45:17 +0200   author:   Albert Krger

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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us