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
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 :)
Re: Instant searching via Webbrowsers
Is there a available dataset?
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.
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.