Form 的BorderStyle设置为bsNone

解决方案 »

  1.   

    对啊,对啊!
    这样要求你写button来关闭这个窗口,或者运行后按alt+f4了
      

  2.   

    genphone_ru(票票):说的对。
    不过还有一种方法:
      public
        procedure CreateParams(var Params:TCreateParams);override;
        { Public declarations }
      end;var
      Form1: TForm1;implementation{$R *.dfm}procedure TForm1.CreateParams(var Params:TCreateParams);
    begin
     inherited CreateParams(Params);
     Params.Style:=WS_THICKFRAME OR WS_POPUP OR WS_BORDER;
    end;
      

  3.   

    我已经将form的borderstyle设置为bsnone了,但是还是没有效果呀我的这个窗口的formstyle是fsMDIChild
    是不是跟这个有关系?
      

  4.   

    begin
    inherited createparams(params);
      with params do
      begin
        style:=style and (not ws_caption);
        style:=style or ws_popup or ws_thickframe or ws_clipchildren;
      end;
    end;