How to keep handler in Delphi ?

Question

How to keep handler in Delphi ?

Re: How to keep handler in Delphi ?

Tip: to keep an event-handler that is still empty, simply add a comment to it. Even an empty comment will do, like this:
procedure TFormMain.Button1Click(Sender: TObject);
begin
//
end;