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
notifyIcon.icon = null
Dispose
Components just must be disposed in the right order like this :
NotifyIcon.Icon.Dispose(); NotifyIcon.Dispose();
Add this to the MainWindow closing event.
MainWindow
Hope this will help.