How can I clear a pictureBox?

0
0

I cannot find anything like pictureBox.ClearImage() or something.

Thanks in advance

  • You must to post comments
0
0

You can simply set the Image and ImageSource to null.
this.pictureBox1.Image = null;
this.pictureBox1.ImageSource = null;

See sample.

 

Attachment
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.