Any easy way to use icons from resources?

后端 未结 7 1736
伪装坚强ぢ
伪装坚强ぢ 2020-12-08 18:35

I have an C# app. I need to add an icon to that app so i added an icon resource. Adding resource went fine, but is there any way to use my (resource) icon as form icon WITHO

相关标签:
7条回答
  • 2020-12-08 19:29

    On Form_Load:

    this.Icon = YourProjectNameSpace.Resources.YourResourceName.YouAppIconName;

    0 讨论(0)
提交回复
热议问题