Order and save right now!
20% off with the dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming!
Use FindWindow function, which returns handle of window, which you want to close. And after that, send WM_CLOSE message to this window.
procedure TForm1.Button1Click(Sender: TObject); var MyHandle: THandle; begin MyHandle:=FindWindow(nil, 'Delphi Help'); SendMessage(MyHandle, WM_CLOSE, 0, 0); end;
More for developers