VB 6.0在文本框中进行Auotfiltering [英] VB 6.0 Auotfiltering in textbox

查看:98
本文介绍了VB 6.0在文本框中进行Auotfiltering的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI ...我正在研究如何在我输入文本框时自动过滤文本框(例如,我在VB文本框中键入A,所有带字母A的记录都会显示下拉列表,当我继续键入Am所有记录时有Am会出现下拉菜单)plzzzzzzzzzzzzzzzz .....任何人都可以给我一些代码如何在我的VB 6.0项目中执行此操作....我使用sql作为我的数据库!




我会很感激,如果有人会回复!thnx ....

解决方案


HI ...我正在研究如何在内部输入时自动过滤文本框(例如,我在VB文本框中输入A,所有带字母A的记录都会显示下拉列表,当我继续键入Am all时有Am的记录会显示下拉列表)plzzzzzzzzzzzzzzzz .....任何人都可以给我一些代码如何在我的VB 6.0项目中执行此操作....我使用sql作为我的数据库!




我会很感激,如果有人会回复!thnx ....


使用类似的查询

展开 | 选择 | Wrap | 行号



...在我输入内容时自动过滤文本框(例如我在VB文本框中键入A,所有带字母A的记录都会显示下拉列表,当我继续键入Am ...



我猜你一定是引用列表框或类似的东西?一个文本框一次只能显示一件事。





使用ComboBox,它既可以作为TextBox又可以作为ListBox。在KeyPresss事件中编写代码,填充组合..


REgards

Veena


HI...Im researching for how to auto filter the text box while im typing inside it (ex. I type A in the VB textbox and all records that have letter A will appear dropdown and as I proceed typing Am all records that have Am will appear dropdown) plzzzzzzzzzzzzzz..... any one can give me some code how to do this in my VB 6.0 project....Im using sql as my database!



I will be thankful if any one will reply!thnx....

解决方案

HI...Im researching for how to auto filter the text box while im typing inside it (ex. I type A in the VB textbox and all records that have letter A will appear dropdown and as I proceed typing Am all records that have Am will appear dropdown) plzzzzzzzzzzzzzz..... any one can give me some code how to do this in my VB 6.0 project....Im using sql as my database!



I will be thankful if any one will reply!thnx....


Use the query like

Expand|Select|Wrap|Line Numbers


... auto filter the text box while im typing inside it (ex. I type A in the VB textbox and all records that have letter A will appear dropdown and as I proceed typing Am ...

I''m guessing you must be referring to a listbox or something of that sort? A textbox can only display one thing at a time.


Hi,

use a ComboBox, It can Act as both TextBox and a ListBox. Write the Code in KeyPresss event, to populate the Combo..

REgards
Veena


这篇关于VB 6.0在文本框中进行Auotfiltering的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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