>Morys,
>
>You may try SendMessage / PostMessage API, but I'm not sure, it would work.
>
>
Update I've tried a test with normal timer, it didn't work. May be cppTimer can help, I haven't tried.
I don't think that code running inside the VFP process is going to do this; the best I've managed is to run an external script or out-of-process server to send Windows messages to the VFP app without resetting the Foreground context.