Clearing a PictureBox.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob Bradford

    Clearing a PictureBox.

    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.
  • Jorge Serrano [MVP VB]

    #2
    RE: Clearing a PictureBox.

    Hi Rob,

    you have to put the control to Nothing;

    PictureBox1.Ima ge = Nothing

    I hope that helps.

    Kind Regards,

    Jorge Serrano Pérez
    MVP VB.NET


    "Rob Bradford" wrote:
    [color=blue]
    > 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.
    >[/color]

    Comment

    Working...