Delphi Tips Trick

For Newbie

Iklan Responsive Atas

LightBlog
Responsive Ads Here

Tuesday, 15 November 2011

Creating a Full Screen Form on Delphi


Trick display the form to be full screen, follow the width and height of the screen.

Edit the Form OnCreate event or onShow:
TForm1.FormCreate procedure (Sender: TObject);
begin
   BorderStyle: = bsNone;
   WindowState: = wsMaximized;
   Width: = Screen.Width;
   Height: = Screen.Height;
end;

1 comment:

Anonymous said...

This works great.
Thanks