写在新增行按钮事件或者窗口AfterLoad事件中
Dim dr As DataRow = DataTables("表A").Find("第九列 is not null","_Identify desc")
If dr IsNot Nothing Then
Dim p As String = ProjectPath & "指定路径\" & dr("第九列") '改成实际目录路径
If FileSys.FileExists(p)
e.Form.Controls("PictureBox1").Image = getimage(p)
Else
e.Form.Controls("PictureBox1").Image = Nothing
End If
End If