Ad
What Is The Best Way To Make A Delphi Application Completely Full Screen?
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 ?
I am looking for something similar to what IE does when you hit F11.
I wish this to be a run time option for the user not a design time decision by my good self.
As Mentioned in the accepted answer
BorderStyle := bsNone;
was part of the way to do it. Strangely I kept getting a E2010 Incompatible types: 'TFormBorderStyle' and 'TBackGroundSymbol'
error when using that line (another type had bsNone
defined).
To overcome this I had to use :
BorderStyle := Forms.bsNone;
Ad
Answer
Well, this has always worked for me. Seems a bit simpler...
procedure TForm52.Button1Click(Sender: TObject);
begin
BorderStyle := bsNone;
WindowState := wsMaximized;
end;
Ad
source: stackoverflow.com
Related Questions
- → Index out of range (-1) when I click on any item in the TListBox
- → How can I display only specified database results based on TListbox items?
- → SQL How to sum from another table and insert in another table
- → Can a Windows dll retrieve its own filename?
- → TObjectList<T>.IndexOf giving incorrect result
- → Add field to FDMemTable in Delphi
- → What impact (if any) does Delphi 2009's switch to Unicode(/UTF16) have on executable size and memory footprint?
- → How to solve Delphi's [Pascal Fatal Error] F2084 Internal Error: LA33?
- → Do I have to use Disable/EnableControls when using Locate in a TClientDataSet?
- → What is the best way to make a Delphi Application completely full screen?
- → Is it possible to get a delphi project to create a lib file as the output of the project?
- → How to get currently logged in username?
- → How to fix the endless printing loop bug in Nevrona Rave
Ad