开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜