>No, it does not work with notepad either.
>
>It s a VFP 7 app running on Win2K.
>
>
>lnhwnd = FindWindow(0,tcwindow)
>
>
>is returning 0
Make sure that tcwindow matches NotePad Window title exactly. It works for me in VFP7SP1 under Win2KSP3 with
tcwindow = "Untitled - NotePad"
--sb--