SPECIAL OFFER        Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming!

⤷ Minimize controls

You should use handle of some control as parameter of CloseWindow function.

procedure TForm1.Button1Click(Sender: TObject);
begin
  CloseWindow(Edit1.Handle);
end;
More for developers
Databases for Amazon Associates
Amazon Categories
Amazon Nodes