Combo Event Question

  • Thread starter Thread starter Leon
  • Start date Start date
L

Leon

Hi. Is there an Event associated with the user opening a
Combo box? That is, when they click on the down arrow to
the right hand side of the Combo. I want to present users
with a message box that pops up when they click on the
arrow. Ive tried On Open, On Got Focus and On Click but
my message doesnt get triggered at the point I want. Any
ideas? Thanks, Leon
 
Thanks for this Terry. I'm confused - do you mean you cant
help me here? Thankks again and sorry for not replyng
before now. Cheers, Noel
 
Hello Leon
I apologise profusely - I must have been on the yippee beans that night..
Furthermore I did not check the notify box so I did not get your return
message.

There are two ways a user can drop the combo down
1. Click the drop down arrow at the side of the box
2. Press ALT DownArrow when the combo has focus.
Not many people know about the second, and even fewer use it, so you would
probably get away if you did not cover this possibility.

You need to put code in the OnMousedown event and in the KeyDown event as I
mentioned in my first reply

In the OnMousedown event you must trap the DownArrow key press and allow all
other keys to pass through as the user may be using the left/right arrows to
move the cursor within the combo's text box. (ditto with the mouse click -
the user may be using the mouse to position the cursor, so you must know wher
in the combo s/he clicked)

I am not sure why you do not want to do this in the OnGotFocus
Terry
 
just thought i'd mention - there's one more way to manually drop the combo
down, that i know of: press the F4 key when the combo box has the focus.

(btw, i'm one of those people who didn't know about Alt+DownArrow - always
learning something new!)
 
Back
Top