473,396 Members | 2,011 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,396 software developers and data experts.

Taskbar Icon for Windows Service?

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 doesn't appear.

Is there a way to do this?

Thanks,
Rob
Jul 21 '05 #1
2 3057
Services do not have a GUI. You need to create a ServiceController app
(Windows Application) that controls the state of your service, and then add
the NotifyIcon control to your ServiceController app.

Look in the Components tab of your toolbox in the VB IDE. You should have a
ServiceController control, that is what you need to use to control your
service.

Try this link to get some info on the ServiceController members.
http://msdn.microsoft.com/library/de...mberstopic.asp

Anthony

"Rob Y" <ro*******@robnospam.com> wrote in message
news:00****************************@phx.gbl...
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 doesn't appear.

Is there a way to do this?

Thanks,
Rob

Jul 21 '05 #2
Anthony,

Thanks, I appreciate the info.

Rob
-----Original Message-----
Services do not have a GUI. You need to create a ServiceController app(Windows Application) that controls the state of your service, and then addthe NotifyIcon control to your ServiceController app.

Look in the Components tab of your toolbox in the VB IDE. You should have aServiceController control, that is what you need to use to control yourservice.

Try this link to get some info on the ServiceController members.http://msdn.microsoft.com/library/default.asp? url=/library/en-
us/cpref/html/frlrfsystemserviceprocessservicecontrollerme
mberstopic.asp
"Rob Y" <ro*******@robnospam.com> wrote in message
news:00****************************@phx.gbl...
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 doesn't appear.

Is there a way to do this?

Thanks,
Rob

.

Jul 21 '05 #3

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

Similar topics

1
by: Morten Bendsen | last post by:
Is it possible to set the icon and title for a group of buttons on the taskbar? The group appears when several applicationwindows are opened, and when "Group similar taskbar buttons" are...
5
by: Dave | last post by:
Hi I am trying to set my windows xp pro system up so that i can write and test ..asp pages.I have followed the instructions given by www.w3schools.com to install the internet information...
2
by: Mullin Yu | last post by:
hi, how can i add an an icon at the right button taskbar like that for MS-SQL server that i can have two options - Start - Stop which will call the OnStart of my Windows service and OnStop...
0
by: Jean Bredeche | last post by:
Hi: My application creates multiple forms, all of which appear in the taskbar. Because I have my Windows XP configured to "Group similar taskbar buttons", the multiple forms get put into the...
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...
5
by: michael sorens | last post by:
(1) By setting an icon in my Windows Form properties, I successfully display my custom icon when my application is executed. However, as soon as I open the Options form in my application--now...
4
by: juliashah | last post by:
I've developed a windows service that monitors the database and shows icon of a different color depending on the data. To be able to show an icon I have to select the "Allow service to interact...
1
by: ba.hons | last post by:
Hello, i have written a .net windows service in C# and was wondering if anyone knew any good articles or examples on how i can create a taskbar item for this. I would like it to maybe show a...
3
by: Jimmy | last post by:
I'm kinda newbie to python and wxPython. Now I'm confronting a thorny problem: how can I make my program minimize to the taskbar represented as an ico, and when there is some message from network...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.