Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

VB
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
Posted

1 solution

Hello Every one

i have answer now


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


thanks for all
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900