>Greetings and Salutations!
>
>When running the VFP6 program I'm currently working on I notice that if another program is active the windows and frames of my program appear BEHIND the windows and frames of the program that was already up and running (and the title bar of my forms are greyed out). How can I have my program give focus to itself and run in front of any other program?
>
You can force your application to the top of the Windows context by a call to the ShowWindow Win32 API call. The following is an unsophisiticated starting point to use:
DECLARE INTEGER GetActiveWindow IN WIN32API
DECLARE INTEGER ShowWindow IN WIN32API INTEGER hWnd, INTEGER ShowWindowMode
=ShowWindow(GetActiveWindow(),5)