For Each x In webForm.WebBrowser.document.All If UCase(x.TagName) = UCase("IMG") Then If InStr(1, UCase(x.src), UCase(imgurl), 1) > 0 Then Set ctrlRange = webForm.WebBrowser.document.body.createControlRange() ctrlRange.Add (x) Clipboard.Clear 'MsgBox UCase(x.src) ctrlRange.execCommand ("Copy") 'SavePicture Clipboard.GetData, App.Path & "/1.bmp" '用于把图片保存至硬盘中 Picture1.Picture = Clipboard.GetData Exit For End If End If Next