DECLARE INTEGER SetParent IN user32; INTEGER hWndChild,; INTEGER hWndNewParent DECLARE INTEGER WinExec IN kernel32 STRING lpCmdLine,; INTEGER nCmdShow DECLARE INTEGER FindWindow IN user32; STRING lpClassName, STRING lpWindowName DECLARE INTEGER SetWindowPos IN user32; INTEGER hwnd,; INTEGER hWndInsertAfter,; INTEGER x,; INTEGER y,; INTEGER cx,; INTEGER cy,; INTEGER wFlags * run notepad = WinExec("notepad.exe", 1) * find its hwnd nHwnd = FindWindow(NULL, "Untitled - Notepad") * Note you must supply the EXACT Caption of the window) * force it inside our form SetParent(nHwnd,ThisForm.HWnd) * size it LOCAL nLeft,nTop,nWidth,nHeight nLeft = ThisForm.shpNotepad.Left nTop = ThisForm.shpNotepad.Top nWidth = ThisForm.shpNotepad.Width nHeight = ThisForm.shpNotepad.Height SetWindowPos(nHwnd, 1,nLeft, nTop,nWidth, nHeight,64)and there you have it. You can also use CREATEOBJECT() to open Word and then you can actually communicate with it using COM while it is restricted to the bounds of your VFP form.