Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you close a Form with a button?

Status
Not open for further replies.

123cry

Programmer
Jun 1, 2004
2
US
How do you close a Form with a button? plz show me the source. thx
 
123Cry-


Put a button on the form, say "Button1". In the OnClick event, double click and it will insert a procedure

Procedure Button1Click(Sender :TObject);
Begin

End;

Put in the procedure call:

Procedure Button1Click(Sender: TObject);
Begin
Close;
End;

HTH,
JGS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top