in reply to Win32 - Where will the focus go?

There are two ways to interpret your question: 1) who will get the focus if I get the LostFocus, and 2) who now has focus now that LostFocus has fired. In the latter case GotFocus will fire for the object with the focus. I am not sure if the former is reasonable as there is no way to predict how focus would be lost (leaving the left or right of an object could cause different objects to get the focus).

HTH, --traveler

Replies are listed 'Best First'.
Re^2: Win32 - Where will the focus go?
by ChrisR (Hermit) on Sep 23, 2005 at 19:18 UTC
    I'll try to more/less specific for clarification.

    Inside the sub for a _LostFocus event, I'd like to find out which object will have the focus next before the _LostFocus event returns.

    As I understand it, the _LostFocus event is fired when the current object looses the focus and before the next object gets the focus.

    Update: As pointed out below, I was mistaken about the order of events.