How to remove icon from system tray?

A

asdf

Hello,

My VB.NET program displays a system tray icon. It works fine and when I
start app it appears and when shutdown app it disappears.
However, when my app crashes the icon stays and only it gets removed
when I point my mouse on it.
Is it possible to force removal of the system tray icon?

Any help is greatly appreciated,
Tom
 
C

Cor Ligthert

Asdf,

Make your program in a way it does not crash
(Than the problem is gone as well)


Cor
 
H

Herfried K. Wagner [MVP]

asdf said:
My VB.NET program displays a system tray icon. It works fine and when I
start app it appears and when shutdown app it disappears.
However, when my app crashes the icon stays and only it gets removed when
I point my mouse on it.
Is it possible to force removal of the system tray icon?

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.
 

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