光标应自动跳转到输入字符的结果 [英] cursor should automatically jump to result for entered character

查看:84
本文介绍了光标应自动跳转到输入字符的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在网络表单中使用了一个列表框。

当我从键盘光标/指针输入一个字符时,应自动转到该结果。

例如当我输入''M'时,我的光标应该移动到列表项beginig /包含''M''。

我的列表已经排序。

Hi All,
I use a List box in my web form.
When I enter a character from keyboard cursor/pointer should automatically go to that result.
e.g. when I enter ''M'' my cursor should move to list items beginig/ containing with ''M''.
My list is already sorted.

推荐答案

有什么问题?

捕获OnKeyDown事件,然后对所选项目运行并设置所需的项目。



干杯,

Edo
What is the problem?
Capture the OnKeyDown event, then run on the selected items and set the one you want.

Cheers,
Edo


这篇关于光标应自动跳转到输入字符的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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