开发者

The file is not part of the project or its build action property is not set to resource

Here's a screenshot:

The file is not part of the project or its build action property is not set to resource

How can I display the 'no.png' image?开发者_Python百科 It seems changing it to Resource worked.

How can I change the image in my code-behind c# file?

imgStatus.Source = new ur???


You can use the format like this Source="/YourProjectName;component/images/yes.png" The images folder should be resided in your project root directory. The Visual Studio can automatically generate the path in the image control's property setting panel.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜