Clearing a PictureBox.

  • Thread starter Thread starter Rob Bradford
  • Start date Start date
R

Rob Bradford

All.

I am a fairly new to VB.NET, so this may seem a bit trivial to you,
but I can't see how to do it.

Problem:

I have a form that includes a couple of picture boxes for images of
products. How do I get rid of them if the user chooses to clear the
form?

Ther must be a method, but I can't find it and I find the help on
Picturebox more confusing than helpful.


Any ideas would be appreciated.
 
Hi Rob,

you have to put the control to Nothing;

PictureBox1.Image = Nothing

I hope that helps.

Kind Regards,

Jorge Serrano Pérez
MVP VB.NET
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top