Any easy way to use icons from resources?

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

    in visual studio for vb.net, go to the project properties, click Add Resource > Existing File, select your Icon.

    in your code: Me.Icon = My.Resources.IconResourceName

提交回复
热议问题