remove application icon from the taskbar using .net with c#

后端 未结 2 548
南旧
南旧 2021-01-26 05:34

I am trying to show icon on the taskbar, well i did this in this way.

ResourceManager resManager = new ResourceManager(\"TestAgent.Properties.Resources\", GetTy         


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-26 05:45

    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();
    }
    

提交回复
热议问题