Click here to Skip to main content
15,798,592 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

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

1 solution

Hello Every one

i have answer now

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