Click here to Skip to main content
12,952,273 members (45,108 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I want to do like when any character is entered into the textbox the appropriate list
Starting with this character is shown like dropdown list the selected value is filling in the textbox. This is only for windows form using C#
Posted 7-Feb-13 17:14pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1


You should have a look at the "AutoComplete" properties of the text box.
There is:
that let's you set the source for autocompletion (File System, last URL, browser history, custom, ...)
that let's you select the way suggestions are proposed to the user
that let's you set the list of suggestion (it is a string collection) when the AutoCompleteSource is set to CustomSource.

I hope those properties will help you solve your problem.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


you can do this easily.


create an textbox index changed event and then bind the dropdown in that indexchanged event using like operator.


In the binding of the dropdown bind the id to the value field and the text content to the text showing field.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,239
CHill60 3,490
Maciej Los 3,083
Jochen Arndt 1,975
ppolymorphe 1,880

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 8 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100