Visual Studio, change app icon, how?

后端 未结 6 631
陌清茗
陌清茗 2020-12-17 17:26

I am working on a first time C# project in Visual Studio 2005 and I am wondering if there is anything special that needs doing to change the application icon apart from chan

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-17 18:21

    Additional tray icon from resources. Put an appropriate image into the resources and name it icon.

    NotifyIcon tray = new NotifyIcon();
    tray.Icon = Icon.FromHandle(WindowsApplication1.Properties.Resources.icon.GetHicon());
    tray.Visible = true;
    

提交回复
热议问题