NotifyIcon remains in Tray even after application closing but disappears on Mouse Hover

后端 未结 14 1358
清歌不尽
清歌不尽 2020-12-03 00:08

There are many questions on SO asking same doubt. Solution for this is to set

notifyIcon.icon = null and calling Dispose for it in FormClo

14条回答
  •  悲哀的现实
    2020-12-03 01:05

    This is normal behaviour, unfortunately; it's due to the way Windows works. You can'r really do anything about it.

    See Issue with NotifyIcon not dissappearing on Winforms App for some suggestions, but none of them ever worked for me.

    Also see Notify Icon stays in System Tray on Application Close

    Microsoft have marked this as "won't fix" on Microsoft Connect.

提交回复
热议问题