Delphi: exit button

Posted by Richard Valongo:

Im an absolute beginner with delphi and so im starting off simple but I have hit a solid wall. I want to put an exit button on my application, all it needs to do is close the window which is open, but I can't figure out how to do it, I've read all the books that came with delphi but I did not find them very clear.
Any help is greatly apprecatied
Cheers Rich.


Re: Jean Claude Servaye:

To close a window, just do

Form1.Close;

To close the application (the main window):

Application.Terminate;

 

 

 

 

 

 

 

 


[ DelphiLand Discussion Forum ]