Notify Icon refesh problem?

S

Sam Marrocco

When using the NotifyIcon control in an app to place an icon into the
Task Tray all seems well. However, when my app quits, the icon sometimes
remains in the task tray indefinitely....until you move the mouse over
it--they it vanishes! Is there a good way of making sure the icon is
gone before my app completely quits?
 
M

Mike Bulava

Set the Visable property of the NotifyIcon to False when your application
exits
 
S

Sam Marrocco

Thanks! Can't believe I missed that one! :)

Mike said:
Set the Visable property of the NotifyIcon to False when your application
exits

--
==================================================================
Sam J. Marrocco
Sr. Visual Effects Artist/R&D
Travelling Pictures/GTN
Inferno, Flame, Maya, All that cool stuff!
"The fact that no one understands you doesn't make you an artist."
==================================================================
 
H

Herfried K. Wagner [MVP]

* "Mike Bulava said:
Set the Visable property of the NotifyIcon to False when your application
exits

This will help, but IMO the 'NotifyIcon' class should delete the icon
itself if the object is disposed.
 
J

Jarod_24

Sam Marrocco said:
When using the NotifyIcon control in an app to place an icon into the
Task Tray all seems well. However, when my app quits, the icon sometimes
remains in the task tray indefinitely....until you move the mouse over
it--they it vanishes! Is there a good way of making sure the icon is
gone before my app completely quits?

I've had the same problem, but setting the Visible property to False and
then Then Disposing of the object (the form does that) dosen't seem to work.
I must still move my mouse over the icon for to it to dissapear.

I'm using Windows XP and have the "Hide Inactive Icons" enabled (Checked
without it to and it didn't work then either).
 

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