NotifyIcon click event not firing....

  • Thread starter Thread starter Heather R
  • Start date Start date
H

Heather R

I am writing a windows service that has a notifyicon component. The
component displays accordingly, but for some reason, I cannot get the
click or double click event to fire. It seems like none of the events
are firing for some reason. I have made sure the withevents is in the
declaration, but that still doesn't work...

Any ideas??

Thanks,
Heather
 
I am writing a windows service that has a notifyicon component. The
component displays accordingly, but for some reason, I cannot get the
click or double click event to fire. It seems like none of the events
are firing for some reason. I have made sure the withevents is in the
declaration, but that still doesn't work...

Any ideas??

Thanks,
Heather

Heather,

I don't think that's going to work... Services, generally don't have a
message loop, so components that rely on Windows Messages (such as
Windows.Forms.Timer and the NotifyIcon component) won't work properly.

I would suggest that you look into using Remoting to connect to your
service from a separate application.
 
Thanks for the reply---

I haven't found the total solution, but I'm now just making the
notifyicon part of a windows app and calling it from the service to see
if that will work!!

Heather
 
Back
Top