Loading PictureBox Image from resource file with path (Part 3)

前端 未结 5 874
北荒
北荒 2020-12-03 07:19

I understand that this question has been asked (and answered) before. However, none of the solutions are working for me.

Below is a screen capture of all the relevan

5条回答
  •  一整个雨季
    2020-12-03 07:34

    Setting "Copy to Output Directory" to "Copy always" or "Copy if newer" may help for you.

    Your PicPath is a relative path that is converted into an absolute path at some time while loading the image. Most probably you will see that there are no images on the specified location if you use Path.GetFullPath(PicPath) in Debug.

提交回复
热议问题