Recommended Answers
Jump to PostFirst you will need to view the source code for the specific web site and get their searchbox name and the submit button name from the source code.
Add a webbrowser to your form.
In code the following -
WebBrowser1.Navigate2 "http://www.MySiteToSearch.com/" WebBrowser1.Document.All("TheSearchedSitesTextboxName").Value …
Jump to PostOpen the site you want to search, right click and select "View Source" or "View Source Code". This will bring up a html page with the source code. Search through the code for the textbox name, will normally be txtSearch or something similar.
After the search, make your browser …
Jump to PostMy apologies, just made the switch to .net, still thinking vb6 -
WebBrowser1.Document.GetElementById("MySearchedTextboxName").SetAttribute("Value", Information.txtuser.Text)
If you want to read the returned data -
Dim myElement as HtmlElement myElement = Webbrowser1.document.GetElementById("The name of the element here") Dim Value as String = myElement.GetAttribute("value") MessageBox.Show("Here is the …
All 10 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.