notifyIcon Dipose

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amitkgupta28
    New Member
    • Apr 2009
    • 7

    notifyIcon Dipose

    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
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Code:
    MyNotifyIcon.Visible = false;
    Call it during your close function, where you do whatever clean-up you need to.

    Comment

    • amitkgupta28
      New Member
      • Apr 2009
      • 7

      #3
      can you please provide the code.... Actually I tried it but it's not working...

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        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

        Comment

        Working...