Clear content of a picture box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Maybe a stupid question, but I don't know how to do.

I have an application where I read information from a database and show it
on a form. It also includes a picture stored as BLOB. On the form I have a
clear button. When hitting the button als fields on the form may cleared.
Everything works fine, but I don't know how to clear the picture out of
picture.image.

Has anyone an sample in C# ?

Thanks
Uwe
 
Hi,

Did you try to assign picture.Impage=null ?

If that will not work, you can try to initialize
Bitmap(width=1, height=1) with color of picture.BackColor.

HTH
Marcin
 
Back
Top