954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

text box that displays a lists of suggestions/choices like in yahoo search box

im just a noob vb programmer and im now making a thesis project (library system) im just wondering if any1 know how to do that (see title) in visual basic coz im planning to put that in our text box for searching books or student info for easier searching. help me pls ^^

noobyy
Newbie Poster
2 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

Here is what you can do.
Put a textbox on a form. And then place a listview control below. Now write the search code on the keydown of the textbox to show the results in the listview control below.

binoj_daniel
Practically a Master Poster
645 posts since Dec 2006
Reputation Points: 25
Solved Threads: 18
 

I think you mean is the combo box but not the combo box in the default given. just go to the components then check the Microsoft Windows Components (I think it is sorry no VB here in the cafe) if you can see the combobox then thats it. what you have to do is to load the data from the database to that combobox then when put an entry on that combobox it will give you a suggestions.
hope it would help. if you still don't get it just give me a buzz

jireh
Posting Whiz
316 posts since Jul 2007
Reputation Points: 11
Solved Threads: 49
 

I don't mean combobox. List view gives more control over how you want to represent the data. It is best suited when you need custom format for your data. Its can act as a auto-complete solution.

binoj_daniel
Practically a Master Poster
645 posts since Dec 2006
Reputation Points: 25
Solved Threads: 18
 

Hi,
Check the attached example, I hope this is what you are looking for.

Attachments Autocomplete.zip (2.11KB)
kb.net
Junior Poster
172 posts since Aug 2007
Reputation Points: 13
Solved Threads: 29
 

This is good provided you can add the id and display column.

binoj_daniel
Practically a Master Poster
645 posts since Dec 2006
Reputation Points: 25
Solved Threads: 18
 

Hi ki.net

Thanks a lot for for your support
it was really a timely help

tenetchat
Newbie Poster
1 post since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

Please mark thread as solved if your problem has been answered.

abelingaw
Posting Whiz in Training
205 posts since Jun 2008
Reputation Points: 66
Solved Threads: 26
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You