Link to home
Start Free TrialLog in
Avatar of MitchellVII
MitchellVIIFlag for United States of America

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.
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

do you mean the dropdown?
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
and as you tab out or the combo box lost the focus, the dropdown is automatically restored..
Avatar of MitchellVII

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.
In other words, can I somehow fire the "AfterUpdate" event without releasing the mouse button?
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial