Hello all,
Is it possible to search for images ONLY in WebBrowser?
For example, my keyword in textbox1 is 'clouds' and when the button is clicked WebBrowser must show only images of that keyword.
Please help! All help will be appreciated.
Trusted
Printable View
Hello all,
Is it possible to search for images ONLY in WebBrowser?
For example, my keyword in textbox1 is 'clouds' and when the button is clicked WebBrowser must show only images of that keyword.
Please help! All help will be appreciated.
Trusted
What you could do is use a WebClient to download the page source and do a quick search for any URLs/titles that contain the keyword. Once that's done, you would grab the source URL from the image tag, pump it into a string that would also contain the image tags of all the other found images, then you would save it (dynamically of course) as an HTML page and display it in a webbrowser. Makes things a lot easier and does the same thing that you're looking for.
Hello Blupig,
Thanks for your response.
:confused: I am an absolute noob :confused:
No idea how to do that ???
Trusted
If I were to do it, i'd just download the html, then use a regex to parse for <img tag's. and loop it until the end.
Then display each item into a listbox... then once you click on one in the listbox, load it into a picturebox.
Fairly simple project. Look up regex