自动完成数据组合 [英] AutoComplete Data Combo

查看:110
本文介绍了自动完成数据组合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个具有文本框和列表框的项目中.列表框包含所有状态的列表.

需要发生的是,当在文本框中键入州名称时,该州在列表框中突出显示.

此外,如果选择"A",则选择阿拉巴马州";如果选择阿拉斯",则选择阿拉斯加",以此类推...

我知道我可以使用Sendmessage Api,但我想按喜欢"声明而不是开始于"在列表中选择!!!!

还应该能够突出显示列表框中的文本并将其显示在文本框中.



事实是,我希望在客户端(在应用程序中)而不在服务器端(数据库)中具有过滤器记录集

我希望可以说出我的意思
谢谢,

Am working on a project that has a text box and a list box. The list box has a list of all of the States.

What needs to happen is when the State name is typed into the text box, the State is highlighted in the list box.

Also, if "A" it selects "Alabama", if "Alas" then "Alaska" is selected, etc...

I know I can Use Sendmessage Api but i want to select in a list by ''like'' Statement not ''begin with''!!!

Should also be able to highlight the text in the list box and have it appear in the text box.



the truth is that i want to have filter recordset in client side(In Application) not in server side (Database)

I hope could say what i mean
Thanks,

推荐答案

我建​​议您研究textchange事件.我认为这就是vb6中的名称,但我可能会误解.我知道它确实以某种形式存在,并且您将需要在其中进行一些处理以过滤/选择列表框的值.
I suggest that you study up on the textchange event. I think that is what it was called in vb6, but I may be mistaken. I know it does exist in some form or another and that you will need to do some processing in there filter/select your list box value(s).


这篇关于自动完成数据组合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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