我想在我的应用程序中使用图像。
我已经添加了 4 个这样的图像: WindowsAplication1-Resources-Images-add 现有文件(选择我的图像)然后我可以在窗口中看到它们,也可以在解决方案资源管理器中看到它们。
但是当我使用这个命令来使用图像时
pictureBox2.Image = Prooerties.Resources.**** (I don't see the images)
为什么?
我做错了什么?
谢谢,
也许这会帮助你
pictureBox2.Image = global::(SolutionName).Properties.Resources.(ImageName);
确保将 (SolutionName) 和 (ImageName) 更改为您的
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句