>>Hi Gang!
>>
>>Questioin.....
>>
>>Given 2 VFP programs running as EXE's on a given PC.
>>
>>The 1st program, POS.exe is running in it's own window.
>>
>>The 2nd program, called EZSign.exe runs minimized to the taskbar, but pops up to the forefront when needed by calling the WindowState property when needed.
>>
>>Thisform.WindowState = 0 && Normal
>>_Screen.WindowState = 0 && Normal
>>
>>
>>Thisform.WindowState = 1 && Minimized
>>_Screen.WindowState = 1 && Minimized
>>
>>
>>But this does not always get the EZSign program to display in FRONT of the POS program ( by design, we wanted the EZSign to popup up IN FRONT of the POS program, then disappear back to the taskbar when needed.
>>
>>How would YOU go about making the EZSign program pop up in front of the POS program when needed, then disappear back to the taskbar when not wanted to be visible or in front of the POS program??
>>
>
>Use the BringWindowToTop API function.
>
>Tamar
Is this ok ???
DECLARE INTEGER FindWindow IN user32 STRING lpClassName, STRING lpWindowName
DECLARE INTEGER BringWindowToTop IN user32 INTEGER hWindow
hWnd = FindWindow(Null, Thisform.Caption)
BringWindowToTop(hWnd)
and place it in the forms ACTIVATE in question, to force it to the FRONT of the other EXE's running ??
Thanks a bunch!
Tommy Tillman A+ NetWork+ MCP