how to download images to a local file using C#, winforms and browser control?

N

news.austin.rr.com

hi

i am using the miscrosoft browser control on a windows form (win form) to
extract html content to a local html file. I use the browser control and
mshtml.IHTMLDocument2 as shown below.

mshtml.IHTMLDocument2 doc = axWebBrowser1.Document as
mshtml.IHTMLDocument2;

using the doc object I can have this code

doc.images.item(object name, object index)

can i use this? im not sure how to ge thte object name or index... Is there
a better way to get the image from the html source and save it locally?

I am new to this :(

thanks ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top