首先要让编释器知道不需要自动来创建你的主窗体 Ctrl+Shift+F11, 然后在,Project1(application)中加入如下代码! form1:=Tform1.Create(nil); form1.ShowModal;