Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
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

Hello,

You should have a look at the "AutoComplete" properties of the text box.
There is:
C#
AutoCompleteSource
that let's you set the source for autocompletion (File System, last URL, browser history, custom, ...)
C#
AutoCompleteMode
that let's you select the way suggestions are proposed to the user
C#
AutoCompleteCustomSource
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.
 
Share this answer
 
HI,

you can do this easily.

step-1:

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

step-2:

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

Thanks
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900