通过在组合框中输入该项目的第一个字符来访问组合框(通过C#) [英] Access to items of combobox by enter first character of that item in combobox (by C#)

查看:81
本文介绍了通过在组合框中输入该项目的第一个字符来访问组合框(通过C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi
在组合框中,有很多项目。我想在输入第一个字符时选择该项目

其中。我怎么能通过c#来做到这一点?

非常感谢

Hi In a combobox, there are very items. I wants the item be selected when I type first character
Of it. How can I do this by c#?
Thanks very much

推荐答案

在Combobox属性中你会找到DropDownStyle的属性,从那里选择DropDownList 。然后按如下方式设置属性。

AutoCompleteSource - > ListItems

AutoCompleteMode - >追加



我希望这能解决你的问题。
In Combobox properties you will find property of DropDownStyle, select DropDownList from there. Then set the properties as follows.
AutoCompleteSource --> ListItems
AutoCompleteMode --> Append

I hope this will sort out your problem.


这篇关于通过在组合框中输入该项目的第一个字符来访问组合框(通过C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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