473,385 Members | 1,958 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,385 software developers and data experts.

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 2654
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.hernandez" <a.*@yahoo.com> wrote in message
news:eC**************@TK2MSFTNGP09.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
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
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...
1
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...
8
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...
3
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...
1
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...
3
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...
17
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
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...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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,...

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.