MitchellVII
asked on
How do i use code to determine if combobox is open or not?
Hi,
I need some code that will tell me whether a combobox on my form is in it's "opened" vs "closed" state.
I need some code that will tell me whether a combobox on my form is in it's "opened" vs "closed" state.
and as you tab out or the combo box lost the focus, the dropdown is automatically restored..
ASKER
Hey cap,
Well, what i really need is something that can test whether the list is expanded or need this.
Here's why I need this. I have written some drag n' drop code that opens a small popup form when i click on something and then, as long as my left mouse button stays depressed, i can drag the popup to its drop location. If I release the left button, this doesnt work.
So I want to be able to selecct and item from my combo list and have it open the popup for dragging, but I don;t know how to do this without releasing the left mouse button and using the "AfterUpdate" event of the combo.
If I could somehow emulate the "AfterUpdate" event on the combo with actually releasing the left mouse button that would be ideal.
Well, what i really need is something that can test whether the list is expanded or need this.
Here's why I need this. I have written some drag n' drop code that opens a small popup form when i click on something and then, as long as my left mouse button stays depressed, i can drag the popup to its drop location. If I release the left button, this doesnt work.
So I want to be able to selecct and item from my combo list and have it open the popup for dragging, but I don;t know how to do this without releasing the left mouse button and using the "AfterUpdate" event of the combo.
If I could somehow emulate the "AfterUpdate" event on the combo with actually releasing the left mouse button that would be ideal.
ASKER
In other words, can I somehow fire the "AfterUpdate" event without releasing the mouse button?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i don't think there is a way to know that (afaik)
you can set it to dropdown in the gotfocus event
me.comboName.dropdown