如何获得图片框的默认设置

如何获得图片框的默认设置

本文介绍了如何获得图片框的默认设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将图片框转换为其默认设置?我要做的是,需要删除图片框的图片.
但以下两项均无法正常运行,
pictureBox1.Image = null;

pictureBox1.Container = null;

pictureBox1.Container = none;

how can we convert a picture box in to its default settings?what i want to do is,need to remove the picture of the picture box.
but neither of following are running properly,
pictureBox1.Image = null;

pictureBox1.Container = null;

pictureBox1.Container = none;
please can any one help me with this?

推荐答案

//Clear image
pictureBox1.Image = null;


pictureBox1.Image = null;
pictureBox1.Invalidate();


这篇关于如何获得图片框的默认设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-28 02:54