>The problem is maybe very easy but I can't find good solution. I'd my application will be always on top . When somebody switch to other using alt+tab or WIN+M my application always go to top. But it never becames focus for keyboard entry. I must first click mouse on the main screen of my application
>and then i can of course entry from keyboard.
>Question is : How to set focus on my application without using mouse ?
If you can obtain the hWnd to the Fox form (there's a function to do this in FoxTools), you can call SetForegroundWindow() during the Activate event of the form; SetForegroundWindow() is documented in the API section here on UT.