Question

I have searched here and found some offerings but none work for me as D5 (win8) does not appear to have the...

Application.MainFormOnTaskbar:=True;

It tosses an "undeclared identifier" error.

I have tried...

WindowState:=wsMinimized;

...but that shows as a small title-bar at the bottom of the screen. Interestingly enough, when I use the "-" at the top right of the main form, it does exactly what I need. It hides the main form but leaves the icon on the Taskbar that restores the main form when clicked.

How can I get the form to hide but still leave an icon on the Taskbar?

Était-ce utile?

La solution

You are looking for

Application.Minimize;
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top