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

后端 未结 14 1336
清歌不尽
清歌不尽 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:09

    i can tell you can solve the problem simply using the .dispose() method, but that is not called if you kill the process instead of exit the application.

    please refer to Application.Exit if you have built a simple Windows Form application else refer to Environment.Exit that is more general.

提交回复
热议问题