Hi George,
>Are you sure that, internally, VFP isn't using its whandle rather than hWnd?
Who knows... in any case it's using a window handle, and because the Command Window is never closed, it remains the same. If it's the WHandle, it might be easier to manipulate it. The WHandle is a pointer to an internal structure in the VFP User memory pool. Maybe there's nothing more than a flag to change.
Christof
--
Christof