【问题标题】:VB.NET How can I check if a PictureBox contains an image?VB.NET 如何检查 PictureBox 是否包含图像?
【发布时间】:2022-01-28 06:58:45
【问题描述】:

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

谢谢

【问题讨论】:

    标签: vb.net


    【解决方案1】:
    If Not pictureBox.Image is Nothing Then
        //do stuff here
    Else
        //do other stuff
    End If
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-08
      • 1970-01-01
      • 1970-01-01
      • 2019-02-14
      • 2019-12-16
      相关资源
      最近更新 更多