473,395 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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
4 5628
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
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
"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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

48
by: Joseph | last post by:
Hi I'm writing a commercial program which must be reliable. It has to do some basic reading and writing to and from files on the hard disk, and also to a floppy. I have foreseen a potential...
1
by: balu | last post by:
Hello , I Had a problem in developing a application for getting a message over or above system tray . When we first logon into the yahoo messenger , whenever a new user logon ,The messenger...
1
by: Tom | last post by:
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...
3
by: Nicolas Poirier | last post by:
I successfully made a system tray application. When I do shut down the computer, how does the computer can instruct my application to shut down? For the moment, if I don't quit my application,...
10
by: Crouchie1998 | last post by:
Hello To All You Real Programmers Out There!! There is an application called: "Tray It" Webpage: ---------- http://www.teamcti.com/trayit/trayit.htm Direct Download:
0
by: Flack | last post by:
I have pasted at the end of this message a small sample program I whipped up to do some testing. It's a form with a datagrid and two buttons. Each button clears the dataTable that is the source...
2
by: ericlangland | last post by:
Hi, I have a small managed code application (windows forms) that executes on startup and immidiatly minimizes to the system tray. It launches and shows the form when I double click it's small...
3
by: Patrick Dugan | last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots up. Occasionally the icon that should appear in the system tray does not show up. The program is still running in memory...
1
by: Oguz Yarimtepe | last post by:
Hi, Is there any binding that i can use for my python-tk application that will show an icon at the system tray when the application runs which will be able to be change during the process? --...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.