>Hi George,
>
>>
>>While I know you have your answer, an altenative is the SetActiveWindow() function. You only need to pass the window handle as a parameter.
>>
>
>Actually, I couldn't get that to work. It seems that it works with top-level windows only, i.e. _VFP.hWnd, but I could have been doing something wrong.
Joel,
The only things I can think of are rather than passing _VFP.hWnd you try either _SCREEN.hWnd or _SCREEN.Forms(1).hWnd.
Don'y forget that _VFP.hWnd is the frame and _SCREEN.hWnd is the desktop.
George
Ubi caritas et amor, deus ibi est