使文本框像下拉菜单 [英] Make TextBox Like Dropdown

查看:181
本文介绍了使文本框像下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想创建一个像这样的文本框,如果我输入一些单词,它会给出数据库中类似单词的列表..... in就像Google搜索文本框一样.
请帮我...


在此先感谢..

解决方案

您不需要创建一个-可以使用自动完成"功能.
请参阅MSDN: AutoCompleteMode [AutoCompleteSource [ http://www.farooqazam.net/c-sharp-autocomplete-textbox/ [ ^ ]


Hi,


I want to create text box like ,if I enter some word it gives list of that similar word from database .....in Short just like Google Search text box.
Please Help Me...


Thanks in Advance..

解决方案

You don''t need to create one - you can use the AutoComplete feature.
See MSDN: AutoCompleteMode[^], AutoCompleteSource[^]


In fact, you can store the contents at the isolated storage for user specific AutoComplete box.


Go through this link-

http://www.farooqazam.net/c-sharp-autocomplete-textbox/[^]


这篇关于使文本框像下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆