-
Hello,
How can I check if a PictureBox has a image loaded or not inside of it?
I already tryed to use
If Picture1.Picture = LoadPicture("") Then...
and
If Picture1.Picture is Nothing Then...
but it didn't work.
Any ideas of how to solve this?
Thanks a lot.
Michel Jr.
-
I just come up with a stupid way of doing it. Im sure there are better ways but this is really funny way of doing it:
Code:
Private Sub Command1_Click()
MsgBox CBool(Picture1.Picture.Handle)
Picture1.Picture = LoadPicture("C:\windows\desktop\kedaman.bmp")
MsgBox CBool(Picture1.Picture.Handle)
End Sub