Autor Beitrag
jonathanschmid
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 24.07.06 01:39 
Hallo,

Ich habe in einem Projekt zwei Forms/Units. Ich lasse nach 3sec das erste Form wieder schließen und dafür das zweite anzeigen. Wenn ich jetzt das zweite Form schließe sind beide veschwunden, das Programm läuft aber noch. Wie kann ich das verhindern bzw. beim schließen des zweiten Forms das gesamte Programm beenden?

Danke,
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 24.07.06 01:50 
Moin!

Probier´s mal mit Application.Terminate; ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
jonathanschmid
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 24.07.06 14:18 
Danke! Hab damit jetzt
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
  Application.Terminate;
end;

gefunden! :)