在工程文件.dpr中  Application.Initialize;
  FrontForm:= TFrontForm.Create(Application);
  FrontForm.Show;
  FrontForm.Update;
  .....
  frontform.hide;
  frontform.free;
  application.run;
end;