Count controls on a webpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seraieis
    New Member
    • Apr 2008
    • 60

    Count controls on a webpage

    I'm trying to write a program to control an intranet page at my company using VB.net. The page uses a series of tables and form buttons to navigate it.

    Is there a way to enumerate all of the form controls on a webpage? I can list all the links on the page, but I can't seem to find a way to find form controls.
    For Each x As HtmlElement In Me.WebBrowser1. Document.Links
    Me.ListBox1.Ite ms.Add(x.GetAtt ribute("href"))
    Next

    Any help would be most welcome.

    Thanks!
Working...