Check
Re: How to get focus to my VFP app from a VFP utility once c Message #
1220782>
>I have a problem here.....
>
>I have a method in a form that runs the ShellExecute API to run an external webservice program.....
>
>As soon as it executes this API, the method continues and runs a loop to look for a textfile returned from the webservice....
>
>But the focus stays on the the webservice and I would like to have the focus back on the object running the method (this is because in the timing loop there is an INKEY looking for the ESC key to exit the timing loop and return control back to the user (to bail out if the webservice is taking too long)).
>
>Here is some of the code....
>
<snip>
--sb--