I\'ve got a .Net 3.5 C# Winforms app. It\'s got no GUI as such, just a NotifyIcon with a ContextMenu.
I\'ve tried to set the NotifyIcon to visible=false and dispose
Sometimes Application_Exit event can be raised several times Just put notifyIcon = null; in the end
if (notifyIcon != null) { notifyIcon.Visible = false; notifyIcon.Dispose(); notifyIcon = null; }