列表框问题 [英] List box problem

查看:77
本文介绍了列表框问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个文本框和一个列表框。我在数据库中有一个包含名单列表的表格

现在当我在文本中写一个字母(例如A)时,所有以A开头的名字都会显示在列表框中。这适用于我,如果有更多的名字我可以使用

鼠标在列表框中导航。哪个列表框的keydown事件不工作。我可以向我求解解决方案。

提前感谢

Hi
i have a text box and a list box. I have a table with a list of names in the database
now when i write a letter(for eg A) in text bo all names starting with A will be displayed in the list box .this works with me if there are more names i hav to use
mouse to navigate in the listbox. where as keydown event of list box des not work.ls can yoygive me the solution.
thanks in advance

推荐答案

你在尝试什么在列表框的Keydown事件中做什么?
What are you trying to do in the Keydown event of the listbox ?



你想在列表框的Keydown事件中做什么?
What are you trying to do in the Keydown event of the listbox ?



i希望使用箭头键在列表框中向上导航而不使用鼠标

i want to navigate up an d down in list box using arrow keys without using mouse



i希望使用箭头键在列表框中向下导航而不使用鼠标
i want to navigate up an d down in list box using arrow keys without using mouse



只要列表框具有焦点,那应该是有用的是吗?


顺便问一下,这是什么版本的VB?

As long as the listbox has the focus, that should work shouldn''t it?

By the way, what version of VB is this?


这篇关于列表框问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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