=SetForegroundWindow(lh_form.HWnd)
Is 'lh_form.HWnd' typed exactly as is? Since you put a dot, is HWnd a property of lh_form?DO FORM app_start lh_form = _SCREEN.ACTIVEFORM DECLARE SHORT SetForegroundWindow IN USER32.DLL INTEGER hWnd =SetForegroundWindow(lh_form.HWnd)