I've got a combobox. When it gets focus, I populate it programically, set the .ListIndex to 0 to ensure the 1st item is selected, then drop the box with a call to SendMessage. All looks and works well.
Here's the bug:
If I click the mouse to another control before any other action, the combobox scrolls up, with the control displaying NOTHING in its field, and the combobox retains focus. I second click outside the control releases focus, but the .ListIndex is now -1! (indicating no selection in the combobox).
Anyone know how I can avoid this?? I don't mind the two clicks to move focus, but I need the currently selected item in the combobox to remain the current item!
-with thanks,
Mike
Here's the bug:
If I click the mouse to another control before any other action, the combobox scrolls up, with the control displaying NOTHING in its field, and the combobox retains focus. I second click outside the control releases focus, but the .ListIndex is now -1! (indicating no selection in the combobox).
Anyone know how I can avoid this?? I don't mind the two clicks to move focus, but I need the currently selected item in the combobox to remain the current item!
-with thanks,
Mike