|
-
Feb 20th, 2013, 06:56 PM
#1
Thread Starter
Addicted Member
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
-
Feb 20th, 2013, 08:28 PM
#2
Fanatic Member
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
-
Feb 25th, 2013, 03:59 PM
#3
Thread Starter
Addicted Member
Re: Instant searching via Webbrowsers
Is there a available dataset?
-
Feb 25th, 2013, 04:07 PM
#4
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.
-
Feb 25th, 2013, 04:13 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|