Results 1 to 4 of 4

Thread: [:: Showing only images in WebBrowser - Possible??? ::]

  1. #1

    Thread Starter
    Hyperactive Member Trusted's Avatar
    Join Date
    Jun 2010
    Location
    Don't Know, Cause, I am a Newbie :P
    Posts
    269

    Lightbulb [:: 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

  2. #2
    Lively Member Blupig's Avatar
    Join Date
    Apr 2008
    Posts
    118

    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.

  3. #3

    Thread Starter
    Hyperactive Member Trusted's Avatar
    Join Date
    Jun 2010
    Location
    Don't Know, Cause, I am a Newbie :P
    Posts
    269

    Re: [:: Showing only images in WebBrowser - Possible??? ::]

    Hello Blupig,

    Thanks for your response.

    I am an absolute noob

    No idea how to do that ???

    Trusted




    <= Please click on and rate if you like this post

  4. #4
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    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
  •  



Click Here to Expand Forum to Full Width