Home All Groups Group Topic Archive Search About

Any way to get Windows to refresh the notify area?

Author
9 Feb 2006 7:33 PM
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,

--

(O)enone

Author
9 Feb 2006 11:21 PM
Herfried K. Wagner [MVP]
"Oenone" <oen***@nowhere.com> schrieb:
> 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>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
10 Feb 2006 10:56 AM
Oenone
Herfried K. Wagner [MVP] wrote:
Very very interesting, thanks for that Herfried! I'll get this converted
over to VS2005.

--

(O)enone