CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2000
    Posts
    31

    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


  2. #2
    Join Date
    May 2001
    Posts
    5

    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










Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured