[英]How to unset an image from a picturebox in c#?
I have a picturebox that is intended to have different kinds of images based on the situation. 我有一个图片框,旨在根据情况使用不同种类的图像。 On the other way around, it must have no picture when it's not needed.
另一方面,不需要时它必须没有图片。 How to unset an image from that picturebox in c#?
如何在C#中从该图片框取消设置图像?
You can use pictureBox1.Image = null;
您可以使用
pictureBox1.Image = null;
to accomplish that. 做到这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.