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

Is there a way to clear system tray during VB.NET app crash?

P: n/a
Tom
Hello,

System tray icon informs users that the apps is running in the background.
However, there are instances that the app might crash and after that the app
icon in the system tray is still displayed. It goes away when the mouse is
pointed over the icon.
I wonder if there is any way to force system tray refresh during the VB.NET
app crash?

I tried to add some code in the finalize but it didn't do anything. I think
that finalize was not even executed.

Any help is greatly appreciated,
Tom
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
I think you might be out of luck on this one, as it would appear not
even Microsoft themselves have figured this out. Even today when
Outlook or some other MS app crashes it leaves it's system tray icon in
place until the mouse is passed over the icon. I think this is more of
an Operating System issue than an application issue.

Hope this helps,
Brian Swanson
"Tom" <to*@killspam.com> wrote in message news:to*@killspam.com:
Hello,

System tray icon informs users that the apps is running in the background.

However, there are instances that the app might crash and after that the
app
icon in the system tray is still displayed. It goes away when the mouse is

pointed over the icon.
I wonder if there is any way to force system tray refresh during the
VB.NET
app crash?

I tried to add some code in the finalize but it didn't do anything. I
think
that finalize was not even executed.

Any help is greatly appreciated,
Tom


Nov 21 '05 #2

P: n/a
I think you might be out of luck on this one, as it would appear not
even Microsoft themselves have figured this out. Even today when
Outlook or some other MS app crashes it leaves it's system tray icon in
place until the mouse is passed over the icon. I think this is more of
an Operating System issue than an application issue.

Hope this helps,
Brian Swanson
"Tom" <to*@killspam.com> wrote in message news:to*@killspam.com:
Hello,

System tray icon informs users that the apps is running in the background.

However, there are instances that the app might crash and after that the
app
icon in the system tray is still displayed. It goes away when the mouse is

pointed over the icon.
I wonder if there is any way to force system tray refresh during the
VB.NET
app crash?

I tried to add some code in the finalize but it didn't do anything. I
think
that finalize was not even executed.

Any help is greatly appreciated,
Tom


Nov 21 '05 #3

P: n/a
"Tom" <to*@killspam.com> schrieb:
System tray icon informs users that the apps is running in the background.
However, there are instances that the app might crash and after that the
app icon in the system tray is still displayed. It goes away when the
mouse is pointed over the icon.
I wonder if there is any way to force system tray refresh during the
VB.NET app crash?


You may want to write an external application that monitors your
application, removes the icon if your application crashes and restarts your
application.

A VB6 sample can be found here:

<URL:http://www.activevb.de/rubriken/ausschreibungen/03_07_28_systemtray/downloads/systray_final.zip>

Notice that changes must be done in order to use this code in VB.NET.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4

P: n/a
"Tom" <to*@killspam.com> schrieb:
System tray icon informs users that the apps is running in the background.
However, there are instances that the app might crash and after that the
app icon in the system tray is still displayed. It goes away when the
mouse is pointed over the icon.
I wonder if there is any way to force system tray refresh during the
VB.NET app crash?


You may want to write an external application that monitors your
application, removes the icon if your application crashes and restarts your
application.

A VB6 sample can be found here:

<URL:http://www.activevb.de/rubriken/ausschreibungen/03_07_28_systemtray/downloads/systray_final.zip>

Notice that changes must be done in order to use this code in VB.NET.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.