>>For the main VFP Windows, I believe, which doesn't help Arunkumar very much.
>
>You can use the following to get the hwnd of any forms:
>
>lnWHandle = _WFindTitl(THISFORM.CAPTION)
>HWND = _WhToHWnd(lnWHandle)
>
>
>which are in the foxtools as well.
With a top-level form, this returns the frame rather than the client area. With other (non-top level) VFP forms the value of the above and the client area are the same. That's why the code I presented to find the control on the form makes the additional call to FindWindowEx().
George
Ubi caritas et amor, deus ibi est