如题

解决方案 »

  1.   

    刚才看了看,好像可以根据cellpicture是否为0来判断,
      

  2.   

    我试过不行的,用Nothing也不行
      

  3.   

    nothing明明可以啊
    e.g.
    VSFlexGrid1.Cell(flexcpPicture, 1, 3, 1, 3) = ImageList1.ListImages("ss").Picture
        If VSFlexGrid1.Cell(flexcpPicture, 1, 3, 1, 3) Is Nothing Then
            Debug.Print "nothing"
        Else
            Image1.Picture = VSFlexGrid1.Cell(flexcpPicture, 1, 3, 1, 3)
        End If