Properties.Resources not loading an image

前端 未结 2 804
悲哀的现实
悲哀的现实 2021-01-15 09:57

I have a game application in Visual Studio 2012 C#. I have all the .png images I am using in the Resources file of the project.

Have you any idea why I can access a

2条回答
  •  不思量自难忘°
    2021-01-15 10:13

    Found from: Properties.Resources the icon name does not appear in the intellisense

    You also need to add the icon to the Resources.resx file. Open it in Visual Studio and drag your icon into the Icons menu of the resx and it will become available.

    Also, see Adding and Editing Resources (Visual C#)

提交回复
热议问题