473,386 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Service application and NotifyIcon

Hello:

Does somebody know if NotifyIcon work with service app.

I have exactly the same code that displays balloon in Windows appl,
but doesn't display ballon when called from service.OnStart().

Service is LocalSystem and manual.

thank you,

dave


Nov 7 '06 #1
5 5759
Under normal conditions, a Windows Service does not interact with the Desktop
or show any visible UI elements. So the short answer is, no. There are ways
around this, but in general, if you don't understand why it doesn't work at
this point, it's better not to try and use them. A service is designed to
start with the OS before any user is logged in to see the notifyIcon anyway.
Pete

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"dave" wrote:
Hello:

Does somebody know if NotifyIcon work with service app.

I have exactly the same code that displays balloon in Windows appl,
but doesn't display ballon when called from service.OnStart().

Service is LocalSystem and manual.

thank you,

dave

Nov 8 '06 #2

OK,

this link answers my question.

http://msdn.microsoft.com/library/de...e_services.asp
Nov 8 '06 #3
OK,

SERVICE_INTERACTIVE_PROCESS solved my problem.

dave.
Nov 8 '06 #4
Peter wrote:
Under normal conditions, a Windows Service does not interact with the Desktop
or show any visible UI elements. So the short answer is, no. There are ways
around this, but in general, if you don't understand why it doesn't work at
this point, it's better not to try and use them. A service is designed to
start with the OS before any user is logged in to see the notifyIcon anyway.
Pete
And under Windows Vista IIRC, a service will no longer be able to
interact with the desktop so there won't be a way around it in Vista.

Nov 8 '06 #5
Rad
You might want to consider the approach of writing a totally separate
application that uses the ServiceController to interact with your
service.
On Tue, 7 Nov 2006 21:53:20 -0800, dave
<da**@discussions.microsoft.comwrote:
>
OK,

this link answers my question.

http://msdn.microsoft.com/library/de...e_services.asp
Nov 13 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rob Y | last post by:
I have a Windows Service created in VB.NET and I'm trying to implement a taskbar icon. I tried using NotifyIcon, but I can only get this to work on a Windows Form. In the Windows Service it...
7
by: Lalit | last post by:
Hi Friends, I have developed a Windows service. Now i need icon for this service in systray and context menu fo this icon. Can i do this? With regards, Lalit
1
by: Artur Kowalski | last post by:
I have a NotifyIcon in my Windows Service project and I am trying to add a ContextMenu to this NotifyIcon or use some of the mouse events. Everything isn't working. I think so base class of the...
11
by: Andrew Mueller | last post by:
Hello, Is there any way to make a form part of a windows service application and launch it upon double-click of a system tray icon? I already have the NotifyIcon working and have added an...
3
by: Seymen Ertas | last post by:
Hey anyone seen this before ? I followed examples from microsoft and added a notifyicon to my windows service project and i can't get the icon to show up. Here is a checklist of what i have...
2
by: Randall Powell | last post by:
I am in the process of developing a Windows Service which will: (1) monitor multiple network shares; (2) marshal text file transfers into an SQL Server 2000 instance; and (3) provide messaging...
0
by: Neo | last post by:
I have created a Windows Service that shows a notifyicon in the system tray. I have also created a context menu for the notifyicon and implemented the notifyicons click event. The notifyicon...
1
by: Jacek Jurkowski | last post by:
I would like to make a notyfication icon showing all the time my service is running ... The problem is that in implementation above requires to check "Allow interact with desktop" in service...
3
by: sonu | last post by:
Hello all, I am trying to develop an application which will run as a windows service. The application should have Normal options available with service like start, stop and pause but along...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.