使用visual basic的组合框项目突出显示事件

问题描述:

大家好!我希望有人能帮助我解决这个问题。我只使用Visual Basic Express Edition。我想知道当组合框下拉项突出显示时如何编码事件。



例如:从下拉列表中,项目是红色,橙色和蓝色。当光标悬停在项目orange上方时,我希望label1.text等于突出显示项目的值。



非常感谢大家!

Hi Everyone! I wish someone can help me shed some light on this problem. I am using Visual Basic Express Edition only. I want to know how to code an event when combobox dropdown item is highlight.

Example: from the dropdown list, the items are red, orange and blue. When the cursor is hovered above the item "orange", I want label1.text to equal the value of the highlighted item.

Thanks much everyone!

您必须编写自己的ComboBox版本才能执行此操作。将鼠标悬停在列表中的项目上没有此类事件。
You'd have to write you own version of a ComboBox to do this. There is no such event for the mouse hovering over an item in the list.