In Leave Event - Which control is about to have focus???

  • Thread starter Thread starter AnAnimal
  • Start date Start date
A

AnAnimal

Hi all!

In a control's Leave event, is it possible to determine which control
(or tab stop) is about to gain focus?

Thanks in advance.
 
Hello,

AnAnimal said:
In a control's Leave event, is it possible to determine which control
(or tab stop) is about to gain focus?

You may want to check the form's 'GetNextControl' method.
 
Thanks Mahesh

but TabIndex would only be true if the user used the Tab key. What if
the user has used the mouse to select the next control?
 
Hello,

mahesh said:
TabIndex property should help U

The user could press Shift+Tab to step backwards in the tab order or set the
focus to an other control by using the mouse or pressing a mnemonic. This
won't work.
 
Thanks everyone!!!

I am using the GetNextControl to get to the info needed.

Thanks again!
 
Back
Top