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();
}
simply write notifyIcon.Visible = false;
(capital I in Icon) before closing the window, and you are good to go.
As simple as that.