c# - How to set a checkbox to "checked" using mshtml? -


I can do most things with MSMTM, but I have a situation here to "check" a checkbox input element. ..

IHTMLElementCollection Input Elements = (IHTMLElementCollection) doc.all.tags ("Input"); Foreign currency (IHTMLElement L in input elements) {string elementHtml = el.outerHTML; String wordoffservevientifier = "id = chakoots_ 2"; // Select the terms of service checkbox if (elementHtml .resource (termsOfServiceIdentifier)) {HTMLInputElement chkTOS = (HTMLInputElement) el; ChkTOS @ Checked = true; // This is the solution thanks wen} Else {// nothing - we have no interest in this element}}

Thanks in advance for any help!

Gregg

Highlight the checked property as a boolean < / P>


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -