If I wanted to use a code like...
...but I wanted to exclude one element (button) with a name of "bt1", how would I do this?Code:Dim tag As HtmlElement
For Each tag In WebBrowser1.Document.All
tag.InvokeMember("click")
Next
Thank you all.
Printable View
If I wanted to use a code like...
...but I wanted to exclude one element (button) with a name of "bt1", how would I do this?Code:Dim tag As HtmlElement
For Each tag In WebBrowser1.Document.All
tag.InvokeMember("click")
Next
Thank you all.
have a look at the Enumerable.Except Method :
http://msdn.microsoft.com/en-us/libr...(v=vs.90).aspx
alternatively you could test if tag.getattribute("name") = "bt1", before clicking on tag