>Thanks for the reply George.
>
>In answer to your query, I do get a valid hWnd value for the control and the SHAutoComplete call does return 0. I got the idea off a VB forum and thought it might be easy to adapt to VFP but it doesn't seem to like it.
>
Paul,
Could have to do with the way VFP is handling the system messages. If I had to hazard a guess, that's probably the problem. Unfortunately, this is outside the realm of my knowledge. Perhaps someone else might have an idea. You might want to post the original VB code, however. There might be something there that might give us more of a clue.
George
Ubi caritas et amor, deus ibi est