VB6组合框事件 [英] VB6 Combo box events
问题描述
我有一个表单在VB6与两个组合框(cboCustomer和cboItemNumber)。当有人从cboCustomer中选择一个值时,我想使用与所选客户相关的项目编号列表来填充cboItemNumber。 VB6提供什么事件,我可以使用?我试过_Change和_LostFocus,也没有做我需要的。我发现很难相信我有这么难的时间找到可能的事件列表。
I have a form in VB6 with two combo boxes (cboCustomer and cboItemNumber). When someone selects a value from cboCustomer, I want to populate cboItemNumber with a list of item numbers relevent to the customer selected. What event does VB6 offer that I can use? I've tried _Change and _LostFocus and neither are doing what I need. I find it hard to believe that I'm having such a difficult time finding a list of possible events.
推荐答案
尝试_Click事件。即使控件未实际点击,此事件也会触发。例如,如果您在其中选择并使用向上/向下箭头键更改所选项目,则点击事件仍会触发。
Try the _Click event. This event fires even if the control is't actually clicked on. For example, if you tab in to it and use the up/down arrow keys to change the selected item, the click event still fires.
这篇关于VB6组合框事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!