Results 1 to 5 of 5

Thread: Instant searching via Webbrowsers

  1. #1

    Thread Starter
    Addicted Member Reapism's Avatar
    Join Date
    Sep 2012
    Posts
    170

    Angry Instant searching via Webbrowsers

    Currently I am working on a webbrowser and so far I have a lot of progress and features nailed down.. But I am lacking one thing. I want the ability to instant search using my navigation textbox. So as you are typing a website it will suggest the closest matching one. Like Google Instant searching. Can anyone hint me if not code that? I really want to add this functionality.

    Code:
        Private Sub TxtNavigate_TextChanged(sender As System.Object, e As System.EventArgs) Handles TxtNavigate.TextChanged
    'Coding here I guess?
        End Sub
    End Class

  2. #2
    Fanatic Member
    Join Date
    Oct 2011
    Location
    Sydney, Australia
    Posts
    756

    Re: Instant searching via Webbrowsers

    Hi, you would need to figure out what type of search you wish to do and hold the data in something like a dataset etc

    then as the text changed (the event you have is gold) you would search the dataset for something containing the text
    My CodeBank Submissions
    • Listbox with transparency and picture support - Click Here
    • Check for a true internet connection - Click Here
    • Open Cash drawer connected to receipt printer - Click Here
    • Custom color and size border around form - Click Here
    • Upload file to website without user logins, includes PHP - Click Here
    • List All Removable USB Storage Devices - Click Here
    • Custom On/Off Slide Control - Click Here
    • Insert multiple rows of data into one database table using parameters - Click Here
    • Trigger USB/Serial Cash Drawer - Click Here

  3. #3

    Thread Starter
    Addicted Member Reapism's Avatar
    Join Date
    Sep 2012
    Posts
    170

    Re: Instant searching via Webbrowsers

    Is there a available dataset?

  4. #4
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,376

    Re: Instant searching via Webbrowsers

    You would have to create the dataset. However, there is an autocompletemode for the textbox that you should check out.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  5. #5
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Instant searching via Webbrowsers

    Textboxes have an AutoCompleteSource property. Set AutoCompleteMode to Suggest and choose History as the AutoCompleteSource and it will automatically make suggestions based on your Internet History (if you keep one obviously). There are also other possible sources including the AutoCompleteCustomSource which you can populate with strings of your choice.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

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