Taskbar Icon for Windows Service?

  • Thread starter Thread starter Rob Y
  • Start date Start date
R

Rob Y

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
 
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/d...rviceprocessservicecontrollermemberstopic.asp

Anthony
 
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 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.
url=/library/en-
us/cpref/html/frlrfsystemserviceprocessservicecontrollerme
mberstopic.asp






.
 
Back
Top