Hi all,
I have a question about moving through the elements in a web browser via C#. I currently am trying to get a checkbox to become unchecked using the HtmlElementsCollection...
I have so far been able to implement putting text into a message box that is on a webpage, but I cannot figure out the right syntax for unchecking a checkbox. This is what I've tried so far (the first one is the message box, it works. Second one is the checkbox...no luck):
HtmlElement addMsg = this.webBrowser1.Document.All[gc_inviteFriendMsgBox];
addMsg.SetAttribute("value", "Heya, I totally worked!");
HtmlElement actStream = this.webBrowser1.Document.All[gc_inviteActivityBox];
actStream.SetAttribute("checked", "unchecked");
Instead of "unchecked" I have tried 0 and false...any help here? =\ I have huge troubles with MSHTML when I tried to implement that...kept saying I need a reference to an object with the new keyword but every time I tried that it would say I can't...
Thanks