I am trying to show icon on the taskbar, well i did this in this way.
ResourceManager resManager = new ResourceManager(\"TestAgent.Properties.Resources\", GetTy
Simply Dispose it.
In a Windows Form you can subscribe to the global event ApplicationExit ...
Application.ApplicationExit += new EventHandler(this.OnApplicationExit); private void OnApplicationExit(object sender, EventArgs e) { notifyicon.Dispose(); }