用什么代替Combobox来选择用户ID? [英] What to instead of Combobox to select user id ?

查看:120
本文介绍了用什么代替Combobox来选择用户ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在组合框中加载了用户ID,但随着用户数量的增加,组合框的高度也越来越高,因此在c#.NET中更适合控制加载和选择用户ID。

给我解决方案请.....

解决方案

创建一个用户控件作为带有列表框的自动建议文本框,当您在文本框中键入时,它将在列表框中显示建议并且它比combox快得多,因为combox需要时间来加载数据(例如,如果你有1k数据要显示)



一些链接是:

http://www.dreamincode.net / forums / topic / 34785-create-an-autocomplete-textbox-control-in-c%23 / [ ^ ]





自动完成控制 [ ^ ]


您可以使用滚动条来定义大小的组合框

组合框中的水平滚动条或带有向上/向下箭头按键功能的列表框 [ ^ ]



使用C#向ComboBox添加水平滚动条 [ ^ ]


你可以尝试使用AutoCompleteSource,检查以下CP文章

ComboBox with建议基于子串搜索的能力 [ ^ ]

这个SO QnA [ ^ ]

I am loading the user id's in combobox but as the number of users increased combobox also grow in height so which is more suitable control in c#.NET to load & select userID.
give me Solution Please.....

解决方案

Create a user control as auto suggestion text box with a list box and when you type in text box it will display suggestion in list box and its much more faster than combox bocause combox takes time to load data(eg if you have 1k data to display)

Some Links are :
http://www.dreamincode.net/forums/topic/34785-create-an-autocomplete-textbox-control-in-c%23/[^]


Auto-complete Control[^]


You can use scroll bar to the combobox with a defined size
Horizontal scroll bar in a combo box or a listbox with up/down arrow key press functionality[^]

Adding a horizontal scrollbar to a ComboBox using C#[^]


you can try with AutoCompleteSource, check below CP article
ComboBox with Suggest Ability based on Substring-Search[^]
And This SO QnA[^]


这篇关于用什么代替Combobox来选择用户ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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