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. Klaus Löffelmann

    Console Application - avoid window closes

    Klaus Löffelmann, Dec 1, 2003, in forum: Microsoft VB .NET
    Replies:
    5
    Views:
    354
    Herfried K. Wagner [MVP]
    Dec 2, 2003
  2. SStory

    Forcing System Tray to Refresh?

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

    maximize my application from the system tray

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

    Place Any Application in the System Tray

    Crouchie1998, Oct 2, 2005, in forum: Microsoft VB .NET
    Replies:
    10
    Views:
    371
    Crouchie1998
    Oct 24, 2005
  5. Sidney
    Replies:
    0
    Views:
    238
    Sidney
    Jun 5, 2006
  6. Simon Verona

    Application just closes with no error message

    Simon Verona, Jul 11, 2006, in forum: Microsoft VB .NET
    Replies:
    0
    Views:
    217
    Simon Verona
    Jul 11, 2006
  7. Guest

    System Tray Application

    Guest, Jan 17, 2007, in forum: Microsoft VB .NET
    Replies:
    5
    Views:
    237
    Guest
    Jan 18, 2007
  8. 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:
    526
    kimiraikkonen
    Oct 2, 2008
Loading...