How do I "flash" my notifyicon?

W

wobbles

Hi Everyone,

I'd like my notifyicon icon to change every few seconds on a given
event.

I guess I'd approach this using System.Timers.Timer or the
Windows.Forms.Timer, where I'd set the "Enabled" property of the timer
to "true" in the eventhandler.

I've tried this but with little success.

Can anyone tell me the best way to achieve this?


Thanks,
Wobbles
 
M

Marauderz

Well what I'd do is to set a timer, and change the icon between a picture
and a BLANK icon.
 
H

Herfried K. Wagner [MVP]

* wobbles said:
I'd like my notifyicon icon to change every few seconds on a given
event.

I guess I'd approach this using System.Timers.Timer or the
Windows.Forms.Timer, where I'd set the "Enabled" property of the timer
to "true" in the eventhandler.

I've tried this but with little success.

What's the problem?
 
W

wobbles

What's the problem?


Hello Herfried,

A part of my code that was referencing an external assembly seemed to
prevent my Timer control from working properly.
Using System.Timers.Timer, it seems to have worked okay now.

Thanks for asking though.
Wobbles
 

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