For Each dr As DataRow In drs
msgbox(2)
Dim file = "e:\\web\\zsz\\d\\" & dr("展示照")
Dim img As image = getImage(file)
If img IsNot Nothing Then
msgbox("高度:" & img.height)
msgbox("宽度:" & img.width)
If img.height > img.width Then
Dim bmp As bitmap = new bitmap(img, img.height, img.width)
bmp.RotateFlip(RotateFlipType.Rotate90FlipNone)
bmp.save("e:\\web\\zsz\\d\\" & dr("展示照"))
msgbox(4)
End If
msgbox(3)
End If
Next
msgbox(5)
2、5执行了,其他msgbox没有执行