>I am attempting switch from Fox (5) to Word95. The main problem I have encountered is MS Word's window handle. Can anyone help me by telling me of a way to discover MS Word's Window Handle?
>
>I have tried using 'lnHandle = FindWindow(0, "Microsoft Word")' I have found this to be an inaccurate method as Word often displays the name of whatever document is open at the time eg. 'Microsoft Word - Document1'
>
>Any ideas will be greatly appreciated.
Ben,
There's a file in the Files Download section (Win 32 and other APIs) that will return the window handle based on the known portion of the title bar (e.. Lg. "Microsoft Word") Look for "Is a Windows Application Running"
hth,
George
Ubi caritas et amor, deus ibi est