在form的create事件中加了form1.hide;但界面仍然在,没有藏起来,请问怎么实现?

解决方案 »

  1.   

    procedure TForm1.FormShow(Sender: TObject);
    begin  
      SetWindowLong(Application.Handle,GWL_EXSTYLE,WS_EX_TOOLWINDOW);
      ShowWindow(Application.Handle, SW_HIDE);
    end;
      

  2.   

    在create时hide???
    button.click之后hide就没问题?
      

  3.   

    在窗体上放一个timer1控件
    timer1的intever属性越小越好
    在timer1的timer事件中写:
    timer1.enabled:=false;
    form1.hide;
    这样就可以了
      

  4.   

    你不要自动创建窗体,然后手动实例化,不要show,不就OK了
      

  5.   

    application.ShowMainForm :=false;  //将主窗体设置为不可见
      

  6.   

    创建一个intever:=1的Timer
    然后再timer事件中写
    From1.hide
    timer1.ferr
      

  7.   

    application.ShowMainForm :=false;
     最好的选择