17 Aralık 2015 Perşembe

c# resim linki alma

HtmlElementCollection theElementCollection;
theElementCollection = web1.Document.GetElementsByTagName("img");
foreach (HtmlElement curElement in theElementCollection)
{
  if (curElement.GetAttribute("src").ToString().Contains(@"http://website.com/avatars"))
 {
    pictureBox1.ImageLocation = curElement.GetAttribute("src").ToString();
 }
}