开发者

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

开发者 https://www.devze.com 2023-01-11 23:27 出处:网络
Here\'s a screenshot: How can I display the \'no.png\' image?开发者_Python百科 It seems changing it to Resource worked.

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

精彩评论

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