473,387 Members | 1,535 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,387 software developers and data experts.

Notify Icon refesh problem?

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?

Nov 20 '05 #1
4 1003
Set the Visable property of the NotifyIcon to False when your application
exits

"Sam Marrocco" <sa*@twmi.rr.com> wrote in message
news:Sd*****************@fe2.columbus.rr.com...
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?

Nov 20 '05 #2
Thanks! Can't believe I missed that one! :)

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

"Sam Marrocco" <sa*@twmi.rr.com> wrote in message
news:Sd*****************@fe2.columbus.rr.com...
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?



--
================================================== ================
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."
================================================== ================

Nov 20 '05 #3
* "Mike Bulava" <mb*****@comcast.net> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
"Sam Marrocco" <sa*@twmi.rr.com> wrote in message
news:Sd*****************@fe2.columbus.rr.com...
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).
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Lalit | last post by:
Hi Friends, I have developed a Windows service. Now i need icon for this service in systray and context menu fo this icon. Can i do this? With regards, Lalit
3
by: jm | last post by:
Hi, I have a C# program that changes the notifyIcon during the program. What I have noticed is that sometimes when the program is over the old icon will still be in the system tray. But when i...
4
by: Beenish Sahar Khan | last post by:
I want to start my application so that its notify icon is added to the system tray, i don't want to show any starting form. I want user to interact through the notify icon...just like MSN. Is there...
1
by: Rob | last post by:
I have an interesting problem with my Notify Icon. I cannot get it to display when I start a web service. I have no problems when I test the software on a Windows program. But the Icon will not...
6
by: Neo | last post by:
i'd like to create an application which would run in the background, & there'd be an icon in the system tray (can use the notify icon). But HOW can i make the form invisible. What i'd like to do...
0
by: Mike Eaton | last post by:
Hi there, I have an app whose structure is as follows: a module calls a custom application context containing a notify icon and associated context menu, which in turn acts upon an instance of...
3
by: Cylix | last post by:
I am going to make an application in monitor and do something on time. A part of it is an Notify icon(System Tray Icon), Which project type can I be used for Just showing the notify icon without...
1
by: liubin | last post by:
I'm trying to create a context menu that pops up upon right clicking the notify icon of my application. The menu works great with plain text... no problem. My problem is that I want to add some...
1
by: namrataa | last post by:
i have a notify icon for our media player developed in wpf. included files are notify.cs,notify.resx,notify.designer.cs. i have also added a class file called app.cs . now the problem is how...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.