Set the Align property of the form to full screen to Alclient, this method is the quickest. Of course for me, I did not know this, so I walked a long way, and so on later in the implementation of the form is forbidden to move the time
Just thought of here, Khan. Note: This full-screen mode does not block the system taskbar .... You can also prevent the form from moving,
Method Two:
Control with code.
In the form creation event,
The form can also be moved after this method is run.
Affect aesthetics. The code that prevents the form from moving should be added) to write
Var
Traywnd:
HWnd;
//
Task bar Handle
Rec:trect;
Begin
Traywnd: = FindWindow (' Shell_traywnd ', nil);//
Get the taskbar handle
GetWindowRect (Traywnd, REC);
//
Get taskbar size
Mainfm. Left: = 0;
Mainfm. top:=0;
Mainfm. Width: =screen. Width
Mainfm. Height: =screen. Height-(rec. Bottom-rec. TOP)
End
This also realizes the full screen without blocking the taskbar. Method Three: (Full screen to block the taskbar)
Set the form WindowState to Wsmaxinized, Khan.
Delphi7 Implementing a Form Full screen method