将图片框重置为默认图像 [英] Reset picturebox to default image

查看:141
本文介绍了将图片框重置为默认图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个图片盒。我将默认图像设置为带有一些单词的图片。所以它嵌入在文本框中。所以我使用代码加载这个图片框。当我点击重置按钮时,我将处理保留的图像。那么在我处理之后如何设置回默认图像?

Hi all,

I have a picturebox. I set the default image to a picture with some word. So it embed in the textbox. So I load this picturebox using code. The when I click on Reset button, I will dispose the image that been hold. So how to set back the default image after I dispose it?

推荐答案

没有默认图像这样的东西。你只有一个 Image 属性。如果需要,你应该保留对这种图像的引用。



-SA
There is no such thing as "default image". You just have one Image property. You should keep the reference to such image if you need it.

—SA


这篇关于将图片框重置为默认图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆