Hi everyone!
I'm migrating from VB6 to VB.NET and I'm a trouble about webbroser using getelementbyid
My code in VB6:
The "(1)" was to point to the second time "usuario" appers
But in VB.NET I don't know how to point to the find the second time "usuário" appers.
my VB.NET code:
But when tried to put (1) after ("usuario") an error appered.
PS1: I don't know the reason there's more than an elemento with the same name.
PS2: I'm sorry for my english.
I'm migrating from VB6 to VB.NET and I'm a trouble about webbroser using getelementbyid
My code in VB6:
Code:
browser.Document.All("usuario")(1).innertext
But in VB.NET I don't know how to point to the find the second time "usuário" appers.
my VB.NET code:
Code:
webbrowser1.document.getelementbyid("usuario").setattribute("value", "Jorge")
PS1: I don't know the reason there's more than an elemento with the same name.
PS2: I'm sorry for my english.