如何使应用程序运行就隐藏

字体大小: 中小 标准 ->行高大小: 标准
设置主窗体visible位false是不行的

我想你肯定没有试过!

正确的做法是在工程文件里面加一句话,就想下面这样

program Server;

uses

Forms,

Main in 'Main.pas' {ServerForm};

{$R *.RES}

begin

Application.Initialize;

Application.CreateForm(TServerForm, ServerForm);

Application.ShowMainForm := False;//这句话隐藏主窗口

Application.Run;

end.

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/68195.html