如何取消选中或选中vb.net webbrowser中的复选框? [英] How to uncheck or check a checkbox in vb.net webbrowser?

查看:250
本文介绍了如何取消选中或选中vb.net webbrowser中的复选框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的同性恋者

感谢您访问我的Q

i希望您能帮助我





i想要检查或取消选中我的项目中的wab页面中的复选框vb



in vb6我可以使用此代码



 WebBrowser1.Document.All.Item( )( 1 )。选中=  





但是在vb9中我有错误的mag



错误1类' System.Windows.Forms.HtmlElement'无法编入索引,因为它没有默认属性。







this我的问题

任何人都可以问我

解决方案

你好每一个



i现在回答





 WebBrowser1.Document.GetElementById(  control_id)。SetAttribute(  checked,< span class =code-string>  0





感谢所有


hello gays
thanks to visit my Q
i hope you can help me


i want to check or Uncheck then checkbox in wab page from my project in vb

in vb6 i can use this code

WebBrowser1.Document.All.Item("sex")(1).Checked = True



but in vb9 i have err mag

Error	1	Class 'System.Windows.Forms.HtmlElement' cannot be indexed because it has no default property.




this my problem
any one can hello me

解决方案

Hello Every one

i have answer now


WebBrowser1.Document.GetElementById("control_id").SetAttribute("checked", "0")



thanks for all


这篇关于如何取消选中或选中vb.net webbrowser中的复选框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆