Any way to get Windows to refresh the notify area?

O

Oenone

I've a little piece of code that I sometimes need to use that kills a
running process when it stops responding. The process has a notification
icon that it displays in the system-tray area of the task bar. When its
process is killed, however, the icon stays in the system tray. The only way
to remove it is to move the mouse pointer over the top of it, at which point
the icon vanishes.

Is there any way (using the .NET framework or API calls) to get Windows to
refresh the notification area so that the orphaned icon will disappear on
its own?

TIA,
 
H

Herfried K. Wagner [MVP]

Oenone said:
I've a little piece of code that I sometimes need to use that kills a
running process when it stops responding. The process has a notification
icon that it displays in the system-tray area of the task bar. When its
process is killed, however, the icon stays in the system tray. The only
way to remove it is to move the mouse pointer over the top of it, at which
point the icon vanishes.

VB6 sample (documented in German):

<URL:http://www.activevb.de/rubriken/ausschreibungen/03_07_28_systemtray/systemtray.html>
 

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