--> Prevent the user closes the form by pressing the Alt + F4. | Delphi Tips Trick

For Newbie

Tuesday, 15 November 2011

Prevent the user closes the form by pressing the Alt + F4.

| Tuesday, 15 November 2011


Edit event OnCloseQuery:
TForm1.FormCloseQuery procedure (Sender: TObject; var CanClose: Boolean);
begin
   CanClose: = False;
end;

Related Posts

No comments: