Help needed VB.NET

Status
Not open for further replies.
B

Brawl

Guest
Original poster
alright so I'm trying to get my project to click a radio button but I've had no success here is the source..

Jxpkf.png


I've also even tried this..

Code:
WebBrowser1.Document.GetElementById("server").SetAttribute("Value", "live")
 

Drake

ლ(ٱ٥ٱლ)
member
Joined
Mar 5, 2010
Posts
2,219
Reaction score
1,153
Points
140
Location
Nevada
Code:
For Each element As HtmlElement In WebBrowser1.Document.All.GetElementsByName("server")
            element.InnerText = "live"
        Next
its a name not an id, and i just basically gave u the code :D. Check out my site if you need more help, request a tut and what not.
 
K

KamaluNg

Guest
Original poster
If your trying to get it to click you have to use: invokemember("click")

Try this:
Code:
Try 

For Each element As HtmlElement In WebBrowser1.Document.All.GetElementsByName("server")
            element.invokemember("click")
        Next

catch ex as exception
end try

but Trevors correct.
 
Status
Not open for further replies.