This is the code I'm using:
BorderStyle := bsNone; WindowState := wsMaximized;
My problem is that the application will not close the taskbar, but behind.
It works great when switching to full-screen mode at run time, but it does not work when the application starts at system startup.
UPDATE
It turns out that these two lines work very well. They are in the FormShow event handler. If I break the dot to the end of FormShow, the application seems to be in full screen mode; I see the application through the taskbar. But after FormShow, the property of the Top application becomes somehow changed. I do not change it in the code - the value is -20, so the application is no longer maximized.
Is there a way to track where and when it is changed?
Thanks in advance!
UPDATE
This post is flagged. Please do not post any answers! Thanks.
delphi
Peacelyk
source share