Click to See Complete Forum and Search --> : Forms Collection Web Browser Control


taha
March 15th, 2001, 02:35 AM
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

chris75
May 9th, 2001, 11:25 AM
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