How to retrieve Image from Resources folder of the project in C#

后端 未结 5 1290
一生所求
一生所求 2021-01-04 08:39

i Have some images in resources folder in my project but i want to change the picture box from these resource files of the project

5条回答
  •  没有蜡笔的小新
    2021-01-04 09:29

    Right click on the project. Go to Resources tab. Select the existing option and add the image.

    Now access in the code by

    Image = Properties.Resources.ImageName
    

提交回复
热议问题