Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check a checkbox on an html form?

Status
Not open for further replies.

adamzetec

Programmer
Jan 27, 2005
3
GB
Im having a lot of troubles getting this to work. I am trying to check a textbox to automate the data entry of a form. I can get text to fill in ok, but am struggling when it comes to the checkbox.

I am using the AxWebBrowser control. This is how I have been trying to get this to work (I am new to VB so bare this in mind )

AxWebBrowswer1.Document.Forms("nameoftheformehere")("nameofthetextboxIwantticked").Value = "vbChecked"

Why oh why will this not work?
 
I cant understand, are you want to check a checkbox or a textbox
 
Im wanting to check a textbox. I can get the textbox fields to fill in using a similar method but cannot get the check boxes to become checked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top