473,769 Members | 7,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

windows service with notify icon and contextmenu.. HELP!

Does anyone know how windows service work with notifyicon and contextmenu?

I was able to run the windows service with notifyicon part but when I
inserted the contextmenu command it didn't work. When I read the MSDN
articles about the windows service it says that if my WS needs to be
interactive I need to access the unmanaged windows API. but I honestly dont
have idea on how I will inject that part to my code. Can anyone give me
sample on this? Thanks!
Nov 16 '05 #1
1 2681
You can not have a windows service that has a notify icon, or windows form,
which means that you can not have the context menu.

To do this you need to have two applications that run together, I would
suggest remoting as the transport between, this is simular to how the server
manager and SQL Server work.
"chinimimita.he rnandez" <a.*@yahoo.co m> wrote in message
news:eC******** ******@TK2MSFTN GP09.phx.gbl...
Does anyone know how windows service work with notifyicon and contextmenu?

I was able to run the windows service with notifyicon part but when I
inserted the contextmenu command it didn't work. When I read the MSDN
articles about the windows service it says that if my WS needs to be
interactive I need to access the unmanaged windows API. but I honestly
dont have idea on how I will inject that part to my code. Can anyone give
me sample on this? Thanks!

Nov 16 '05 #2

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

Similar topics

7
10332
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
11
8956
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 event to it for the _DoubleClick. I added a form and tried to open it with:
1
1215
by: Jacek Jurkowski | last post by:
1) How to prevent user to run secound copy of application on the same mahine? I would like to show dialog "Already run" instead of launching a secound insrance. 2) Why, if minimized into a notify icon, my application prevents Windows from shutdown and restart? I'm handling SessionEnding event and it works fine if application window is showed to the user but when window is hidden and notyfy icon is displayed instead, it doesn't work at...
8
2275
by: Jacek Jurkowski | last post by:
1) How to prevent user to run secound copy of application on the same mahine? I would like to show dialog "Already run" instead of launching a secound insrance. 2) Why, if minimized into a notify icon, my application prevents Windows from shutdown and restart? I'm handling SessionEnding event and it works fine if application window is showed to the user but when window is hidden and notyfy icon is displayed instead, it doesn't work at...
3
1940
by: Brent Burkart | last post by:
I haven't dived into creating my windows service yet, but after looking around I have not discovered how to make the service icon appear in the lower right hand corner and how to make a menu to allow the user to change configurations. Any thoughts or directions are appreciated. Thanks, Brent
1
2096
by: Rob | last post by:
I have an interesting problem with my Notify Icon. I cannot get it to display when I start a web service. I have no problems when I test the software on a Windows program. But the Icon will not display for the service. My service utilizes an Asynchronous Callback to load a queue. There is other background processing based on time (different thread). I have heard that the Notify Icon may have issues when the thread that instanctiates...
3
4478
by: Rob | last post by:
Can a form be opened from a Windows service? I have a windows service that I would like to open a form from a notify icon. I cannot get the Notify Icon to display nor can I open a form. Any help would be greatly appreciated. Rob
17
6442
by: UJ | last post by:
Is there any way for a windows service to start a windows program ? I have a service that will need to restart a windows app if it needs to. TIA - Jeff.
1
2091
by: =?Utf-8?B?VzFsZDBuZTc0?= | last post by:
I need to create a Windows Service, which will be hosting a couple of worker classes, each in there own thread. I will be creating a tray Icon (Notify Icon) and a windows form to manage this service. I can send custom commands to start or stop or... any of the worker objects that the windows service will be hosting. What I need to do is to get some information back to the Tray Icon app or the windows form about the actual worker items...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10048
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.