'显示图片
Dim img As String =shang1.Current("spdm")+"-"+shang1.Current("gg1dm")+".jpg"
img="http://192.168.8.134:6868/img/imgbig/"+img
Dim img1 As String ="http://192.168.8.134:6868/img/imgbig/文件不存在.jpg"
Dim pbx As WinForm.PictureBox = e.Form.Controls("tupian")
pbx.SizeMode = ImageSizeMode.Zoom
Try '远程文件存在
pbx.imagefile= img
catch ex As Exception '远程文件不存在
pbx.imagefile= img1 ‘img1一定存在
End Try
此主题相关图片如下:文件不存在--.png
以上代码还是会提示文件不存在