[DllImport("user32.dll")] static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent); [DllImport("user32.dll")] static extern IntPtr SetFocus(IntPtr hWnd); ... SetParent(hWndFox, (IntPtr) hwndParent); SetFocus(hWndFox); // this works, but where's the keyboard cursor?Can any of you WinAPI experts see what I'm missing?