hey. how do i check whether a picture box is empty with an if statement?
Printable View
hey. how do i check whether a picture box is empty with an if statement?
.Image = Nothing
?
i tried that earlier on already.
i tried
if picturebox.image = nothing then
if picturebox.image = "nothing" then
both of the lines cannot be used
Sorry. Something like this
VB Code:
If Not PictureBox1.Image [u]Is[/u] Nothing Then MessageBox.Show("there is") End If
Ryanlum, you don't read the compiler error messages do you!!!
It really is very obvious.
:rolleyes:
Depends what you mean by empty anyway.VB Code:
how do i check whether a picture box is empty?
haha. thx nebulom.
wossname.. i do read the messages.. but i am still raw to vb .net so forgive me if i sound dumb....
lack of syntax experiece :blush: