Combobox fill on Keypress

jmancuso

Member
Joined
Feb 4, 2005
Messages
22
Programming Experience
1-3
I'm trying to populate a combo box on keypress. Basically, when the user begins typing in something the results of the combo box will autofill with the closest match.

For example if the user types in 'S' the remainder of the world from my data source populates such as 'S' + 'ail'. If the user types in a second letter that offers a closer match such as 'Sh' the reaminder is populated with 'Sh' + 'ip'.

I think there are probably fairly easy functions out there, just not sure how to search for them.

Thanks for any help.
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
i made this in vb.net 2003 here's the solution to the autocompletecbo user control it's based on the items stored in it's Item's collection
 

kulrom

Well-known member
Joined
May 10, 2005
Messages
2,854
Location
Republic of Macedonia
Programming Experience
10+
jmancuso said:
I'm trying to populate a combo box on keypress. Basically, when the user begins typing in something the results of the combo box will autofill with the closest match.

For example if the user types in 'S' the remainder of the world from my data source populates such as 'S' + 'ail'. If the user types in a second letter that offers a closer match such as 'Sh' the reaminder is populated with 'Sh' + 'ip'.

I think there are probably fairly easy functions out there, just not sure how to search for them.

Thanks for any help.
Well, can you explain from closer your idea ... are you retrieving something from DB and want to display only items that have satisfied the condition?

Cheers ;)
 
Top Bottom