Har fået koden til at virke men nu lukker den bare programmet ned unden en besked
Her er koden:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Memo1: TMemo;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
Action: TCloseAction ;
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
Action: TCloseAction;
implementation
{$R *.dfm}
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
ShowMessage('På gensyn');
end;
end.