>Hi:
>I have a VFP9 app in wich the users only interact with it through a bar code reader, so they can´t see the screen and they cant reach the keyboard or mouse.
>In this situation I need to prevent the app lost focus (because another person action) by calling certain function of the win api (I guess).
>Anybody can tell me wich function if exists and how to implement it?
>Thanks
Check if
http://www.codeplex.com/VFPX/Release/ProjectReleases.aspx?ReleaseId=1644 may give you some ideas.
Also perhaps you can put NODEFAULT in form's LostFocus event.
If it's not broken, fix it until it is.
My Blog