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