|
-
Aug 13th, 2010, 03:41 PM
#1
Thread Starter
Hyperactive Member
[:: Showing only images in WebBrowser - Possible??? ::]
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
<= Please click on and rate if you like this post
-
Aug 13th, 2010, 04:11 PM
#2
Lively Member
Re: [:: Showing only images in WebBrowser - Possible??? ::]
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.
-
Aug 13th, 2010, 04:15 PM
#3
Thread Starter
Hyperactive Member
-
Aug 13th, 2010, 05:03 PM
#4
Fanatic Member
Re: [:: Showing only images in WebBrowser - Possible??? ::]
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|