Hi all.
I'm using an UltraCombo and I need to change one label on the form when the user moves the mouse over the list portion on the combo, before select the item. The information that will appear in the label, helps the user to select the appropiate item in the list. How can I do this? Maybe is better use UltraComboEditor?
I'm working on Visual Basic form Visual Studio 2005 and Infragistics NetAdvantage 2005 Vol 1.
Thanks in advance.
Hi,
I think this should help you do what you want. The article is for the WinGrid, but it works just as well for WinCombo.
HOWTO:UltraWinGrid Mouse Position and Row Identification
Hi, Mike.
Thanks for your fast answer.
The code in your sample works fine. The problem is that when I click on the combo (the items are showed) and I move the mouse over the items (without click, only move) the 'MouseMove' event is NOT fired. The code is executed only when I move the mouse over the combobox itself (not expanded). I need that the code is executed when I move the mouse (without click or move the wheel) over the items on the list.
What is the right event to write code?
Thanks.
Try using the MouseEnterElement event, instead. This event will actually be even easier than MouseMove because it already gives you the UIElement, so you can skip calling ElementFromPoint.
Perhaps this was a bug that was fixed in a later release, then, because I tested it out and it works fine for me with NetAdvantage 2008 Vol. 2.
Try downloading the latest service release for the version you are using. If that doesn't work, the only other option would be to upgrade.
This event is either fired when I move the mouse over the items in the list.
I have written code for increase the number showed in one TextBox when the event is fired, and I have seen that the value remains zero when the mouse is moved over the items.