How to hide the mainform and still run the program?
问题 I want to run my program with the icon showing in the system tray but without the mainform showing from the start. Edit: lMainForm := new MainForm; lMainForm.ShowInTaskbar := true; Application.Run(lMainForm); Didn't work. As soon as Application.Run is executed, mainform is displayed along with the icon in the system tray. 回答1: The problem you have at the moment is that you are calling the Application.Run overload that takes the main form as a parameter. This will show the main form which you