TextBox offering functionality

JFK

Member
Joined
Nov 28, 2005
Messages
20
Location
Czech Republic
Programming Experience
5-10
Hi to all,

I need some advice.

In my application (VB.NET) I need to make TextBox control, which should offer already existing values to user. For instance: in my database already exist values "ahead", "already", "animal", "anything". While user is writing down "a" into TextBox, it offers him "ahead". In case, user write down another character "n", it offers him "animal". If user write down another character "y", it offers him "anything" and so on.

Does anyone any idea, how to do it? Exists already any enhanced TextBox contol?

I would like to connect this control to my Access 2000 database (field in some table) or to some array of strings at least.

Thanks for your opinions.

#JFK
 
This sounds like predictive texting on a phone....
But something like, reading all the words in your database into an array. Then everytime a key is pressed you will have ot run code to loop through the array and pick out the words that start with that letter. Then on the next key press search through the words you have picked and pick out the words that have those to letters in them.
Thinking about this, this maybe possible with a dataview using its filter.
 
Back
Top