vb.net中,如何判断picturebox是否已加载图像?谢谢!

2025-05-18 14:14:54
推荐回答(3个)
回答1:

Try
If PictureBox1.Image.ToString <> "" Then
Label1.Text = "有图像"
End If
Catch ex As Exception
Label1.Text = "无图像"
End Try

回答2:

如果有图片PICTURE的值不等于0.

回答3:

If Picture1.Picture = LoadPicture Then MsgBox "没载入图片"