Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
|
How to force a form to stay iconized
This article has not been rated yet. After reading, feel free to leave comments and rate it.
If your application should be iconized from the beginning, set the for property WindowState to wsMinimized.
To keep a form iconized (and prevent a restore), add the following handler to your form class definition:
 | |  | |
procedure WMQueryOpen(var Msg: TWMQueryOpen); message WM_QUERYOPEN;
implementation
procedure TForm1.WMQueryOpen(var Msg: TWMQueryOpen);
begin
Msg.Result:= 0;
end; | |  | |  |
Comments:
|