ADVANCED: Entering a combo box with mouse vs tab

  • Thread starter Thread starter Juan Galvez
  • Start date Start date
J

Juan Galvez

Hello everyone,

How can I determine whether a combo box got selectd from the user's exiting
the last control or by the user clicking on it directly? The GotFocus event
on the combo would be the ideal place, but it triggers before the MouseDown
event. I need to do a "mouse clicked?" check before the GotFocus event, not
afterwards. Since the previous control has the focus by default, using the
LeftFocus event on it doesn't work either because the click takes place on
the next control (the combo box)... help?

Thanks in advance,


Juan Galvez
 
How can I determine whether a combo box got selectd from the user's exiting
the last control or by the user clicking on it directly?

Other than selecting all the text or none of the text, I can't think
of any application I use--and I use a *lot* of applications--that does
something differently depending on how the cursor happens to land in a
control.

Can you describe the real problem? (What you described is your
attempt to solve the real problem.)
 
Back
Top