Image shows up in Visual Studio designer but not during run-time

后端 未结 19 2045
独厮守ぢ
独厮守ぢ 2020-12-17 08:09

I\'m currently working w/ VS studio 2010, .NET 4.0. Here is my scenario:

I currently have a class library project called \"Images\" that contains a sub folder calle

19条回答
  •  旧时难觅i
    2020-12-17 08:27

    1- change the file image properties into resource , {click right on the image file-> choose Properties -> switch Build Action to Resource.

    2- use this tag to display image

     
    

    example

    
    
    | improve this answer | |

提交回复
热议问题