CF - 如何访问资源文件夹中的 .gif
我已将一个简单的 .gif 文件添加到项目的 Resources 文件夹中。
现在我已经用 pictureBox 创建了一个用户控件。 我如何将 .gif 添加到 pictureBox.Image = new Bitmap(路径)。
这种情况下的路径是什么?
谢谢!
I have added a simple .gif file into Resources folder in my project.
Now i have created a user control with pictureBox.
How can i add the .gif to pictureBox.Image = new Bitmap (path).
What is the path in this case?
thanx !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你可以通过以下方式做到这一点:
不完全确定这是否有效(目前无法测试它),但它应该为你指明正确的方向。
I think you can do it in the following way:
Not completely sure if this works (cannot test it at the moment) but it should point you in the right direction.