checking if a picturebox has content

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

Guest

hello,

i'm wondering how i can check if an picturebox has any content(as in got an
image).

thanks in advanced.

angus
 
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.
 
Sorry for the blank post,

I clicked to fast,

you can check to see if the picturebox is empty like this:

if picturebox1.image is nothing then
msgbox("I'm empty")
end if
 
angus said:
i'm wondering how i can check if an picturebox has any content(as in got
an
image).

\\\
If Me.PictureBox1.Image Is Nothing Then
...
End If
///

Alternatively you can use the 'IsNothing' function.
 
Angus

With = you can see if a value of a property = Something

With "Is" you can see of the address of a referenced object is Something

I hope this helps,

Cor
 

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