为什么我无法更改HTML
浏览器控件中元素的可见性/ Enabled属性。我正在使用如下代码:
webBrowser.Document.GetElementById("myCombo").SetAttribute("Visible", "False")
webBrowser.Document.GetElementById("myCombo").SetAttribute("Enabled", "False")
我在这种情况下做错了什么?
这样做:
webBrowser.Document.GetElementById("myCombo").Enabled = False '<--- for disable the control
webBrowser.Document.GetElementById("myCombo").Enabled = True'<--- for enable the control
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句