program Server; uses Forms, Main in 'Main.pas' {ServerForm}; {$R *.RES} begin Application.Initialize; Application.CreateForm(TServerForm, ServerForm); Application.ShowMainForm := False;//这句话隐藏主窗口 Application.Run; end.