Connecting Tech Pros Worldwide Help | Site Map

notifyIcon Dipose

Newbie
 
Join Date: Apr 2009
Posts: 7
#1: May 23 '09
Hello All,

I am working on .NET based project in Visual C++. I am using notifyIcon tool in my application. I am facing a weird problem. Even after closing the application, the notifyIcon still remain in system tray and remove when I mouse over it.

I have a little idea that It can be done using dispose() function but I don't know how to use it in VIsual C++.NET.

Thanks in advance for help.

Regards,
Amit
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,743
#2: May 23 '09

re: notifyIcon Dipose


Expand|Select|Wrap|Line Numbers
  1. MyNotifyIcon.Visible = false;
Call it during your close function, where you do whatever clean-up you need to.
Newbie
 
Join Date: Apr 2009
Posts: 7
#3: May 23 '09

re: notifyIcon Dipose


can you please provide the code.... Actually I tried it but it's not working...
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,743
#4: May 23 '09

re: notifyIcon Dipose


That is the code. It's only one line. Where ever you are closing your program, don't forget to close the notify icon.

Tell ya what - you provide the code where you are closing the application, where you have put in this line
Reply

Tags
.net, visual c++, visual studio