.NETGURU
NotifyIcon
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-services' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Barry Akester
-- Copied from [winforms-cs] to [ngfx-services] by Click here to reveal e-mail address --Has anyone has success using the NotifyIcon within a windows service. I haveno problem using the control within a windows form application, but for somereason it won't appear while embedded in a windows service. I have triedeverything. I the Icon is getting loaded correctly, and no exceptions arebeing thrown. If you have, can you help me. Thanks_______________________________________Barry AkesterApplication Architect/ProgrammerAvalanche Click here to reveal e-mail address( 905 ) 542-8426( 416 ) 389-3600
Reply to this message...
 
    
Douglas Reilly (VIP)
In traditional Win32 services there is a flag sent to CreateService that
allows the service to interact with the desktop (by default, it does not).
I have generally just created a client program that loads as a user logs in
and have that program interact with the service as needed.

I cannot see how you would set that flag using the .NET classes just now on
a quick inspection. Administrators can prevent you from interacting with
the desktop even if you want to, so designing a service to interact with the
desktop is a bad idea.

----- Original Message -----
From: "Barry Akester" <Click here to reveal e-mail address>
To: "ngfx-services" <Click here to reveal e-mail address>
Sent: Tuesday, October 02, 2001 6:41 PM
Subject: [ngfx-services] NotifyIcon

> -- Copied from [winforms-cs] to [ngfx-services] by
Click here to reveal e-mail address --
[Original message clipped]

Reply to this message...
 
    
Douglas Reilly (VIP)
System.ServiceProcess has an enumeration, called the ServiceType
enumeration. Among the values is:

InteractiveProcess A service that can communicate with the desktop.

ServiceController has a ServiceType member that can accept members of the
ServiceType enumeration.

----- Original Message -----
From: "Barry Akester" <Click here to reveal e-mail address>
To: "ngfx-services" <Click here to reveal e-mail address>
Sent: Tuesday, October 02, 2001 6:41 PM
Subject: [ngfx-services] NotifyIcon

> -- Copied from [winforms-cs] to [ngfx-services] by
Click here to reveal e-mail address --
[Original message clipped]

Reply to this message...
 
 
System.Runtime.Remoting.MetadataServices.ServiceType
System.ServiceProcess.ServiceController
System.ServiceProcess.ServiceType
System.Windows.Forms.NotifyIcon




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