[Lazarus] How to close a window from code

Timothy Groves the.tail.kinker at gmail.com
Wed Feb 1 18:49:17 CET 2012


On 12-02-01 12:37 PM, Mattias Gaertner wrote:
> Did you get a compiler error?
No.  The program merely hung upon reaching the Close.
>
> This works too:
>
> procedure TForm1.Button1Click(Sender: TObject);
> begin
>    Close;
> end;
>
>
This did not work for me.  However, the Form1.Close version did, and 
that's what I'm using.  Thanks!




More information about the Lazarus mailing list