DECLARE INTEGER FindWindow IN WIN32API ; STRING windowtype, ; STRING caption DECLARE INTEGER SetForegroundWindow IN WIN32API ; INTEGER hwnd x = FindWindow(0,ALLTRIM(goMyForm.Caption)) IF x#0 z=SetForegroundWindow(x) ELSE messagebox("Not found/") ENDIFUnder Windows95 this works, but under Windows98 and nt4sp4, the first time I use this code, it does not bring the window forward.