Click here to Skip to main content
15,903,744 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 28-Jun-11 23:42pm
v2

try this
//Clear image
pictureBox1.Image = null;
 
Share this answer
 
v2
pictureBox1.Image = null;
pictureBox1.Invalidate();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900