Dim dlg As New OpenFileDialog '定义一个新的OpenFileDialog Dim pbx As WinForm.PictureBox = e.Form.controls("PictureBox15")dlg.Filter= "图形文件|*.bmp;*.jpg;*.gif" '设置筛选器If dlg.ShowDialog = DialogResult.Ok Then '如果用户单击了确定按钮 pbx.Image = GetImage(dlg.FileName)
End If
你试试