Results 1 to 3 of 3

Thread: Clear a PictureBox

  1. #1

    Thread Starter
    Junior Member drizz's Avatar
    Join Date
    Jan 2004
    Location
    Redmond
    Posts
    19

    Clear a PictureBox

    I have a picture box that has different images inserted when a combobox selection is made. I also have a clear button that clears all the contents on my form. How do I clear a picturebox? I have tried the following and none of them work:

    picFrom.Image = vbNullString
    picFrom.Image = ""
    picFrom.Clear ()

    Any ideas? I am sure this is an easy one I just seem to have hit a wall...

    Thanks!
    Drew

  2. #2
    Member McBain2's Avatar
    Join Date
    Sep 2003
    Location
    UK, Glos.
    Posts
    60
    VB Code:
    1. picFrom.Image = Nothing

  3. #3

    Thread Starter
    Junior Member drizz's Avatar
    Join Date
    Jan 2004
    Location
    Redmond
    Posts
    19
    See, I knew it was easy! Please pardon my ignorance...
    Drew

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width