VB.NET如何检查PictureBox是否包含图像?

时间:2021-11-17 13:55:36

I'm using VB.NET forms app and I need to check if a PictureBox currently has an image in it. How would I do this?

我正在使用VB.NET表单应用程序,我需要检查PictureBox当前是否有图像。我该怎么办?

Thanks

1 个解决方案

#1


If Not pictureBox.Image is Nothing Then
    //do stuff here
Else
    //do other stuff
End If

#1


If Not pictureBox.Image is Nothing Then
    //do stuff here
Else
    //do other stuff
End If