Dim pbx As WinForm.PictureBox
pbx = e.Form.Controls("PictureBox1")
Dim fname As String = e.Form.Controls("姓名").Text
Dim pth As String = ProjectPath & "Attachments\"
如果图片格式是 “bmp” 代码路径是:
pbx.Image = GetImage(pth & fname & ".bmp")
如果图片有多种格式,比如:"gif","jpg","png","tif", "wmf"
那么代码怎么写,请老师指教,谢谢!