procedure TfrmMain.showform(FormClass: TFormClass);
var
  i: integer;
begin
  for i := 0 to self.MDIChildCount - 1 do
    if (MDIChildren[i] is FormClass) then
    begin
      self.MDIChildren[i].BringToFront;
     // sendmessage(MDIChildren[i].handle,wm_syscommand,SC_RESTORE,0);
      MDIChildren[i].SetFocus;
      Exit;
    end;
  FormClass.Create(self);
end;调用时:
showform(Tform1);