<WebBrowser x:Name="scrapeWebBrowser" Grid.Column="1" Grid.Row="1"/>
scrapeWebBrowser.Navigate("http://yahoo.com");
HTMLDocument objHtmlDocument = (HTMLDocument)scrapeWebBrowser.Document;
foreach (IHTMLElementCollection imageElements in objHtmlDocument.images)
{
//I am not sure what to do here. I am trying to get the reference to the image.
}
I did have to set the property for “Embedded Interop Types” to “False” under the reference for Microsoft.mshtml.
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
ASKER