如何在VB6中为组合框创建自动填充功能? [英] How do I create an auto fill-function for combo-boxes in VB6?

查看:128
本文介绍了如何在VB6中为组合框创建自动填充功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计



如何在VB6中为组合框创建自动填充功能?或者VB6是否已经具备这样的功能?



我感谢每一个有用的帖子。谢谢!





v_tigra

Hey guys

How do I create an auto fill - function for combo-boxes in VB6? Or does VB6 already have such a function?

I appreciate every helpful post. Thanks!


v_tigra

推荐答案

有一个例子这里 [ ^ ]



它可以做一些改进......例如捕获keydown事件中的当前listindex(如果它不是-1),这样你就可以得到下一个匹配(如果没有找到就滚动)



有使用其他方法的其他示例 - 按照Wes Aday的建议进行谷歌搜索。



或者将组合框的样式更改为2 - 下拉列表,用户只需要点击他们需要的选项的第一个字符...多次点击将循环匹配条目
There is an example here[^]

It could do with some improvement... e.g. capture the current listindex in the keydown event (if it is not -1) so you can get the "next" match (roll around if not found)

There are other examples using other methods - follow the suggestion from Wes Aday for a google search.

Or change the style of the combobox to 2 - Dropdown list and the user just needs to hit the first character of the option they need ... multiple hits will cycle through matching entries


这篇关于如何在VB6中为组合框创建自动填充功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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