Guest User

Untitled

a guest
Apr 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. HtmlDocument rememberme = this.webBrowser1.Document;
  2. rememberme.GetElementById("remBox").SetAttribute("checked", "false");
  3.  
  4. HTMLDocumentClass doc = webBrowserControl.Document as mshtml.HTMLDocumentClass;
  5.  
  6. HTMLInputElement input = doc.all.item("checkboxID", 0) as HTMLInputElement;
  7.  
  8. input.value ="false"; //Could be 0, not sure...
  9. //could also be input.@checked = false, sorry I haven't actually used this on a checkbox before... one of these should work though
  10.  
  11. For Each ele As HtmlElement In Me.WebBrowser1.Document.All
  12. If ele.Name = "accept" Then
  13. ele.InvokeMember("click")
  14. End If
  15. Next
Add Comment
Please, Sign In to add comment