What is the best way to make a Delphi Application completely full screen?

前端 未结 9 1611
一生所求
一生所求 2020-12-07 23:07

What is the best way to make a delphi application (delphi 2007 for win32 here) go completely full screen, removing the application border and covering windows task bar ?

9条回答
  •  不知归路
    2020-12-07 23:51

    You need to make sure Form position is poDefaultPosOnly.

    Form1.Position := poDefaultPosOnly;
    Form1.FormStyle := fsStayOnTop;
    Form1.BorderStyle := bsNone;
    Form1.Left := 0;
    Form1.Top := 0;
    Form1.Width := Screen.Width;
    Form1.Height := Screen.Height;
    

    Tested and works on Win7 x64.

提交回复
热议问题