How to create a TEXTBOX with auto suggestion in VB.NET for windows based application?
I am trying to create a accept User Name in textbox and as additional feature i want to show suggestion to user automatically. For example if user press "J" he names starting with "J" (present in name table ) should be displayed 开发者_StackOverflow社区as drop-down.
Can i do it with TEXTBOX or is there any other simple way?
Thanks
For WinForms, simply set:
- AutoComplete mode to the appropriate replacement value
- AutoCompleteSource to CustomSource
- Finally add all your names to the AutoCompleteCustomSource collection
An example is in the link above.
精彩评论