delphi如何实现窗体创建后自动隐藏?

来源:百度知道 编辑:UC知道 时间:2024/06/24 08:08:41
delphi如何实现窗体创建后自动隐藏?
在form的oncrate事件中加入hide 无法隐藏啊。

Project->view source
begin
Application.Initialize;
Application.ShowMainForm := False;//加上这句
Application.CreateForm(TForm1, Form1);
Application.Run;
end.

在Object Inspector栏中的Visible 属性改为False即为对控件进行隐藏~