11 Vote

Delphi: Full Screen Mode for Delphi Application

Question by Guest | Last update on 2021-04-04 | Created on 2012-05-08

I want to run one of my Delphi programs in full screen. This means, that the bar of the window should not be visible and the task bar of Windows should be hidden, too. In other words, the form should cover the whole screen.

Is there any way to adjust a Delphi program, so that it really fills the entire screen?

ReplyPositiveNegativeDateVotes
22 Votes

Simply set the BorderStyle property in the Object Inspector to bsNone. With this, the bar of the window will not be displayed. Furthermore, you have to write this to the OnCreate of your form:

Form1.Height := Screen.Height;
Form1.Width  := Screen.Width;

So, you set the height and the width of the form to the height and the width of your screen.

With this, it should work!
Last update on 2021-04-04 | Created on 2012-05-11

ReplyPositive Negative
7Best Answer7 Votes

There is a much easier way to achieve the same. Adjust in the Object Inspector of the form the following properties:

  • BoderStyle to bsNone
  • WindowState to wsMaximized

With BorderStyle, you can suppress the frame and the edge of the window. With WindowState and wsMaximized, you achieve, that the window will be automatically expanded, so that the whole screen will be filled.
Last update on 2021-04-04 | Created on 2012-05-11

ReplyPositive Negative
Reply

Related Topics

Android Splash Screen Tutorial

Tutorial | 0 Comments

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.