Besides moving the focus it does some other stuff too.
For it to happen, the user has to click on a item in the open list (to select an item) but not click on the box with the list closed.
No. In either case -- whether it corresponds or not. But only if you click on the drop-down list but when you click on the box itself to move focus there by using the mouse. Hm... what somebody still clicks it above the open drop-down list on the box itself when the list open... checked --...
Looks like I have figured. Just declared a module-level boolean var which sets to fIsComboOpen (the function from that code which checks whether the drop-down list is open) at "MouseDown" event but the rest is done at "Click" event according to what that boolean is now.
So after I click on an item in the list it would move focus to some other control on the form but it would not do it when I am entering the combo box. "Change" event would not work because I need to move the focus even if I select the same value from the list as what was in the box before. Maybe...
I want to make the form to act different at MouseDown event in a combo box depending on whether the dropdown is currently down or not. Is there any way to do it? I could not the property of a dropdown list state for a combo box.
Thank you!