文本框的“自动完成"属性不可用 [英] AutoComplete Property of the textbox is not available

查看:144
本文介绍了文本框的“自动完成"属性不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我正在使用VS 2005,.Net Framework 2.0为Windows CE 5.0设备开发C#Windows应用程序.但是我找不到文本框的自动完成"属性.

有关如何为Windows CE 5.0支持此功能的任何线索

Hi all

I am developng a C# windows application for Windows CE 5.0 Device using VS 2005, .Net Framework 2.0. But i could not find AutoComplete Property of the text box.

any clue how to support this feature for Windows CE 5.0

推荐答案

您将需要使用文本框的KeyDown \ KeyUp事件之类的内容,以便您可以检查到目前为止已输入,并且如果它与列表中的一个值或值的一部分匹配,请将该条目作为文本框的值.

使用KeyDown \ KeyUp事件还可以使您使用Handled属性或KeyEventArgs仅允许输入列表中的值.
You will need to use something like the KeyDown\KeyUp event of the text box so that you can check what has been entered so far and if it matches a value or part of a value from your list make that entry the value of your text box.

Using the KeyDown\KeyUp events also allows you to use the Handled property or the KeyEventArgs to only allow values from your list to be entered.


这篇关于文本框的“自动完成"属性不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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