How to refresh system tray when application closes?

Discussion in 'Microsoft VB .NET' started by Guest, Aug 21, 2007.

  1. Guest

    Guest Guest

    I have an application which uses a notification icon in the system tray.
    When the application is closed the notification icon remains in the system
    tray until I hover over it with the mouse. How can I refresh the system tray
    to remove the notify icon when the app closes?
     
    Guest, Aug 21, 2007
    #1
    1. Advertisements

  2. Guest

    Steve Guest

    You need to add code to the Form_Closing event to cleanup the icon
    before the app closes. Try using this:

    NotifyIcon1.Visible = False



    Steve C.
    MCAD,MCSE,MCP+I,CNE,CNA,CCNA


    Engineerik wrote:
    > I have an application which uses a notification icon in the system tray.
    > When the application is closed the notification icon remains in the system
    > tray until I hover over it with the mouse. How can I refresh the system tray
    > to remove the notify icon when the app closes?
    >
    >
     
    Steve, Aug 21, 2007
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SStory

    Forcing System Tray to Refresh?

    SStory, Mar 24, 2004, in forum: Microsoft VB .NET
    Replies:
    1
    Views:
    1,658
    Herfried K. Wagner [MVP]
    Mar 24, 2004
  2. Guest

    maximize my application from the system tray

    Guest, Mar 3, 2005, in forum: Microsoft VB .NET
    Replies:
    1
    Views:
    290
    Michelle
    Mar 3, 2005
  3. Crouchie1998

    Place Any Application in the System Tray

    Crouchie1998, Oct 2, 2005, in forum: Microsoft VB .NET
    Replies:
    10
    Views:
    323
    Crouchie1998
    Oct 24, 2005
  4. Guest

    System Tray Application

    Guest, Jan 17, 2007, in forum: Microsoft VB .NET
    Replies:
    5
    Views:
    214
    Guest
    Jan 18, 2007
  5. Kerem Gümrükcü

    Remove Express Edition Tray icon from System Tray,...

    Kerem Gümrükcü, Oct 2, 2008, in forum: Microsoft VB .NET
    Replies:
    1
    Views:
    448
    kimiraikkonen
    Oct 2, 2008
Loading...

Share This Page