NotifyIcon click event not firing....

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
 
T

Tom Shelton

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.
 
H

Heather R

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top