For Newbie

Tuesday, 15 November 2011

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



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

Share on Facebook
Share on Twitter
Share on Google+

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