473,796 Members | 2,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5663
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.c om> wrote in message news:to*@killsp am.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.c om> wrote in message news:to*@killsp am.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.c om> 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_system tray/downloads/systray_final.z ip>

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.c om> 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_system tray/downloads/systray_final.z ip>

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
8514
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 problem. The program may crash unexpectedly while writing to the file. If so, my program should detect this during startup, and then (during startup) probably delete the data added to the file and redo the writing operation.
1
482
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 will shows message above the system tray. for example " balu comes is on online " above system tray . whenever a new user logout ,The messenger will shows message above the
1
1378
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 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
3
6624
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, system asks to kill an unresponsive task before shut sown. How does I make shut down run more correctly? Thank you Nicolas Poirier
10
3142
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
4853
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 of the dataGrid, and then adds five rows. Button2 is the same as button1 just that it does this in a different thread (I was testing if I was having some threading issues). Anyway, it seems that the location of the call to dt.Rows.Clear()...
2
3925
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 icon in the system tray. So far so good. I'd like for the app to maximize outside of the system tray when the Windows + ? combination keys are selected. It seems that I can catch keystrokes when the form is showing but when minimized(Hide()) it in...
3
7943
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 but the tray icon is not there. If I start the program after Windows has booted up the icon shows every time. I am assuming that the reason is due to the icon being created before the system tray is loaded/running. I have used a timer with...
1
3674
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? -- Oðuz Yarýmtepe
0
9529
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10231
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10013
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9054
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.