清除图片框的内容 [英] clearing the content of picturebox

查看:122
本文介绍了清除图片框的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!!!!

我有一个问题,我有一个图片框,并根据我的输入将绘制一个行的组合,我通过文本框输入,当我点击清除按钮它应该清除文本框和图片框的所有内容,当我在文本框中重新输入我的
输入时,它不应该在上一个输出的picturebox中被覆盖,因为我想完全释放p​​icturebox使用的组件,然后重新开始。

I have a question, I have a picturebox, and based on my input it will draw a combination of lines, and I am getting input through textbox, when I click clear button it should clear all the content of textbox as well as picturebox, and when I re-enter my input in textbox it should not overwritten in picturebox of previous output, as I want to entirely release the components used by picturebox,and start it freshly.

任何人都请帮帮我

推荐答案

您好,

您先来声明您要清除文本框和图片框,但随后表示您不想覆盖图片框。

You first stated you want to clear the text box and picture box but then indicate you want to not overwrite the picture box.

清除TextBox someTextBox.Text =""

To clear the TextBox someTextBox.Text = ""

清除PictureBox somePictureBox.Image = Nothing

To clear the PictureBox somePictureBox.Image = Nothing

这将覆盖以前的输出,即你的要求发生冲突的地方,清除图片框意味着一切都消失了。所以说,也许代码可以显示,更多的细节,因为目前你要求的是不可能的(我相信其他人
可能会有不同的解释)。

That will overwrite previous output, that is where your requirements clash, clear the picturebox means everything is gone. So with that said perhaps code can be shown and more details as currently what you are asking for is not possible (well I'm sure others may interpret this differently).


这篇关于清除图片框的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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