根据用户输入的文本过滤组合框 [英] Filter Combobox according to the text entered by the user

查看:66
本文介绍了根据用户输入的文本过滤组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在vb.net上工作.
我有一个包含患者ID的组合框.例如,

I am working on vb.net.
I have a combobox containing IDs of Patients. eg

001,002,003,004,005,006 etc.


我想过滤组合框.
即如果我输入001
我希望组合框仅显示001,并且可以从中选择它.
请尽快帮助.. !!! :)

提前致谢


I want to filter the combobox.
i.e if I enter 001
I want the combobox to show only 001 and from which i can select it.!!!
Please help Soon..!!! :)

Thankss In advance

推荐答案

Hello Cluelessssss,

您可以通过以下步骤实现它

1)填写组合框的"AutoCompleteCustomeSource"
2)将"AutoCompleteMode"设置为"SuggestApend"
3)将"AutoCompleteSource"设置为"CustomeSource"

希望这对您有帮助
--Rahul
Hello Cluelessssss ,

You can achieve it with below step

1) Fill "AutoCompleteCustomeSource" of combobox
2) Set "AutoCompleteMode" to "SuggestApend"
3) Set "AutoCompleteSource" to "CustomeSource"

Hope this helps
--Rahul



当文本框中的文本更改时,您需要填充组合框.

经历这个-
更改查询-

从数据集中填充组合框 [从ComboBox中的数据库填充数据 [
Hi,
You need fill your ComboBox when Text in the Textbox changes.

go through this-
Change the query -

Populate Combobox from dataset[^]
Populate data from database in a ComboBox[^]


这篇关于根据用户输入的文本过滤组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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