>Ed,
>
>Howsabout we start a contest to see how many ways there are to find the FoxPro window handle? *L*
>
Ok, but we'd better start another section just for that discussion!
>>>Calvin,
>>>
>>>You can use the Foxtools MainHWND() function instead of the FindWindow() function you are using.
>>>
>>>>DECLARE INTEGER FindWindow IN WIN32API ;
>>>> STRING cNull,STRING cWinName
>>>>RETURN ShellExecute(FindWindow(0, _SCREEN.caption),lcAction, lcLink, lcParms, SYS(2023), 1)
>>
>>You can also use GetActiveWindow():
>>
>>DECLARE INTEGER GetActiveWindow IN WIN32API
>>hWnd = GetActiveWindow()