I just wrote an FAQ: demonstrating how to disable (not hide or ignore) the Close button in the top-right of windows forms.
JD Solutions
JD Solutions
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
procedure TMain_Form.FormKeyDown(Sender: TObject; var Key: Word; shift: TShiftState);
begin
if ((not fCloseButtonEnabled) and (Key = VK_F4) and (ssAlt in Shift)) then
Key := 0;
end;