daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top