How to refresh system tray when application closes?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?RW5naW5lZXJpaw==?=

    #1

    How to refresh system tray when application closes?

    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

    #2
    Re: How to refresh system tray when application closes?

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

    NotifyIcon1.Vis ible = 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?
    >
    >

    Comment

    Working...