DECLARE INTEGER FindWindowEx IN Win32API; INTEGER hwndParent, INTEGER hwndChildAfter,; STRING @lpszClass, STRING @lpszWindow DECLARE INTEGER FindWindow IN Win32API; STRING @lpszClass, STRING @lpszWindow DECLARE INTEGER GetWindow IN Win32API; #DEFINE GW_HWNDNEXT 2 #DEFINE GW_CHILD 5 #DEFINE GW_HWNDLAST 1 * lcchild is the caption of the form of interest lcparent = _SCREEN.Caption * Get the main VFP window lnhwnd = FindWindow(0, @lcparent) * Get the first child window lnchild = GetWindow(lnhwnd, GW_CHILD) * Get the last child window (the VFP desktop) lnlast = GetWindow(lnchild, GW_HWNDLAST) * Get the handle of the window of interest lnwindow = FindWindowEx(lnlast, 0, 0, @lcchild)hth,