procedure TForm1.Button1Click(Sender: TObject);
begin
Application.Minimize;
end;
This is a rather minor snippet; but a simple trick often forgotten; most useful in cases where you have a form without a titlebar, but still need the capability to minimize to the taskbar. A common error is attempting to minimize the form, rather than the application itself.
