[blue][/blue]用下面的代码试试看<br>procedure TForm1.FormCreate(Sender: TObject); <br>var <br>ZAppName: array[0..127] of char; <br>Hold: String; <br>Found: HWND; <br>Found: HWND; <br>begin <br>Hold := Application.Title; <br>Application.Title := 'OnlyOne' <br>+ IntToStr(HInstance); <br>StrPCopy(ZAppName, Hold); <br>Found := FindWindow(nil, ZAppName); <br>Application.Title := Hold; <br>if Found<>0 then begin <br>ShowWindow(Found, SW_RESTORE); <br>end; <br>end;