>Hi,
>
>In the LostFocus event of a TextBox, I plan to code actions depend on the next control who is receiving focus.
>
>Something like:
>
>If <control receving focus is control A or contrl B> then
> do nothing
>else
> populate a listbox with values
>endif
>
>
>I am aware that if control A's when event returns .F. then the jump of focus to it will fail, but in my case I am not interested in what will be the outcome of the focus switch, I just need to know where the focus is heading...
>
>Is there a way I can find out which control VFP is attempting to set focus to?
Are you sure that LostFocus is a good place? Please, note that user may just imitate the same behavior by using mouse and you may not like populating listbox in this case. Would not be more consistent to populate listbox in the same place where you issue setfocus to that control?
Edward Pikman
Independent Consultant