471,354 Members | 1,212 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

unload picture

How to unload(clear) picture from picturebox?

Hrcko
Feb 9 '06 #1
2 3589
Hi Hrvoje,
set the image property to null, then call Refresh if needed.

Mark Dawson
http://www.markdawson.org
"Hrvoje Voda" wrote:
How to unload(clear) picture from picturebox?

Hrcko

Feb 9 '06 #2
Set the image to null and repaint.

PictureBox pictureBox;

pictureBox.Image = null;
// assuming the picturebox is embedded in this form
this.Invalidate;
this.Update

Feb 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Harry J. Smith | last post: by
reply views Thread by razheev | last post: by
2 posts views Thread by Lauren Hines | last post: by
6 posts views Thread by Wal Turner | last post: by
3 posts views Thread by M N E E L Y | last post: by
1 post views Thread by hal | last post: by
1 post views Thread by Hal | last post: by
3 posts views Thread by Gauthier Segay | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.