一个关于WebClient与 WebBrowser

WebBrowser wb = new WebBrowser();
wb.ScriptErrorsSuppressed = true;
//在这里Navigate一个空白页面
wb.Navigate("about:blank");
//获取html
System.Net.WebClient wc = new WebClient();
string htmlcode = wc.DownloadString(url);

//下载文件 一定要用 Directory.GetCurrentDirectory()

string filenames = Path.GetFileName("http://img1.gtimg.com/news/pics/hv1/14/174/1057/68775809.jpg");
wc.DownloadFile("http://img1.gtimg.com/news/pics/hv1/14/174/1057/68775809.jpg", Directory.GetCurrentDirectory()+"/image/" + filenames);

原文地址:https://www.cnblogs.com/LanWorld/p/2540397.html