Forms Collection Web Browser Control
Hi,
I am using the web browser control.
I want to get the collection of forms in the currently loaded HTML document , and then I want to iterate throught the collection of forms
and submit each form through my program.
Could anybody please guide me how I might be able to do this? Any code will be welcome
Thanks in advance and Regards
Taha
Re: Forms Collection Web Browser Control
try this or something similar:
set a project ref to Microsoft HTML object library
set the document in the web browser to a MSHTML.IHTMLDocument2 object
Then it's
for i = 0 To IHTMLDocument2.forms.length
then use
IHTMLDocument2.forms(i). various properties/methods
then to submit it :
HTMLDocument2.forms(i).submit