By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,735 Members | 1,415 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,735 IT Pros & Developers. It's quick & easy.

NotifyIcon click event not firing....

P: n/a


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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 2004-01-05, Heather R <pu**************@yahoo.com> wrote:


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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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.

--
Tom Shelton
MVP [Visual Basic]
Nov 20 '05 #2

P: n/a

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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.