11 Vote

Delphi: Full Screen Mode for Delphi Application

Question by Guest | 2012-05-08 at 15:48

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
Avatar
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!
2012-05-11 at 09:13

ReplyPositive Negative
Avatar
6Best Answer6 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 WindowStare and wsMaximized, you achieve, that the window will be automatically expanded, so that the whole screen will be filled.
2012-05-11 at 17:07

ReplyPositive Negative
Reply

Related Topics

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.