May 17th, 2014, 06:10 PM
Use WebBrowser to submit data
I am trying to submit data using the vb6 webbrowser control.
In the case of google it is quite easy:
Right click the textbox and select inspect element which reveals the textbox name to be "q"
Right click the google submit button which reveals the button's name to be "btnG"
So the code to submit data to the google search engine is:
However, it is not always that easy. For example, how to submit a reply to this site?
WebBrowser1.Document.All("q").Value = "Enter the Search Lookup"
WebBrowser1.Document.All("quick_reply").Value = "A Reply"
However, setting the value that way didn't work.
Same when I tried using:
Error in both cases: 'Object does not support this property or method'
Although submitting a reply is easy:
Last edited by Witis; May 17th, 2014 at 06:57 PM.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.