Any easy way to use icons from resources?

后端 未结 7 1818
伪装坚强ぢ
伪装坚强ぢ 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:10

    Forms maintain separate resource files (SomeForm.Designer.resx) added via the designer. To use icons embedded in another resource file requires codes. (this.Icone = Project.Resources.SomeIcon;)

提交回复
热议问题