Interfacing with IE web browser 1.1 COM component

  • Thread starter Thread starter David
  • Start date Start date
D

David

Hi,

I have a form with an IE 1.1 web browser on it. A tutorial provided me with
basic interfacing such as setting the URL, forward, back, and stop. Now I
am hoping I can find a way to do a few more things.

I would like to learn how to do the following:

- Enter data into text box fields
- Click a button on the web page
- Save a text file containing the web page source

I have used HttpWebRequest in the past but would like to proceed with the IE
component in this application if possible.

Thanks for any help,

David
 
David said:
Hi,

I have a form with an IE 1.1 web browser on it. A tutorial provided me
with basic interfacing such as setting the URL, forward, back, and stop.
Now I am hoping I can find a way to do a few more things.

I would like to learn how to do the following:

- Enter data into text box fields
- Click a button on the web page
- Save a text file containing the web page source

I have used HttpWebRequest in the past but would like to proceed with the
IE component in this application if possible.

Thanks for any help,

David

I have found that

wWeb.Document.mshtml.HTMLDocumentClass.IHTMLDocument2_activeElement.mshtml.HTMLInputElementClass.IHTMLElement_document.mshtml.HTMLDocumentClass.IHTMLDocument2_activeElement

refers to the element that currently has focus on the form.

How to iterate through the elements and how to interact with them remains a
mystery to me.
 
David said:
I have found that

wWeb.Document.mshtml.HTMLDocumentClass.IHTMLDocument2_activeElement.mshtml.HTMLInputElementClass.IHTMLElement_document.mshtml.HTMLDocumentClass.IHTMLDocument2_activeElement

refers to the element that currently has focus on the form.

How to iterate through the elements and how to interact with them remains
a mystery to me.

I found the answers to my questions here:
http://renegademinds.com/Default.aspx?tabid=47.

The only thing I'm stuck on now is finding a way to read the source from the
WebBrowser object into VB which appears to be more difficult than I
anticipated.
 
Back
Top