显示组合框中存在的记录 [英] display records present in combobox

查看:30
本文介绍了显示组合框中存在的记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户在组合框中输入字符,然后在文本更改的事件上,组合框样式更改为下拉菜单,并根据用户输入的文本
排序记录并突出显示与该文本关联的记录
如何做到这一点请帮助我

when user enters character into the combobox then on textchanged event combobox style change to dropdown and according to text enter by user
sort records and highlight records associated with that text
how to do this plz help me

推荐答案

我相信您正在寻找一个自动完成的组合框.您没有提到正在使用什么框架,但是假设它是Winforms,请看一下:

http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.autocompletemode.aspx [ ^ ]
I believe you are looking for an auto-complete combobox. You have not mentioned what framework you are using, but assuming it''s Winforms, take a look at this:

http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.autocompletemode.aspx[^]


听起来像是您在谈论自动填充/提前输入功能.

看这里:
自动填充文本框控件 [自动完成文本框 [在C#中创建自动完成文本框控件 [ ^ ]
C#中的自动填充文本框 [此处 [
Sounds like you are talking of autocomplete/typeahead kind of feature.

Look here:
Autocomplete Textbox Control[^]
AutoComplete TextBox[^]
Create an AutoComplete TextBox Control in C#[^]
AutoComplete TextBox in C#[^]

If needed, look here[^] for more.


这篇关于显示组合框中存在的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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