Autor Beitrag
WormHole
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 145



BeitragVerfasst: Fr 13.05.05 20:53 
Okay, ich weiß, es ist eine dumme Frage aber ich komme nicht drauf^^

Ich hab Form 1 gerade am laufen. Bei Klick auf nen Button soll Form 2 aufgerufen werden und Form 1 verschwinden! Wie geht das ? ;)
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Fr 13.05.05 20:54 
ausblenden Delphi-Quelltext
1:
2:
form2.show;
form1.hide;

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 14.05.05 06:49 
oder Form1.close;
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Sa 14.05.05 10:27 
user profile iconFabian W. hat folgendes geschrieben:
oder Form1.close;

Nur wenn Form1 das Hauptform ist, dann wird das ganze Programm geschlossen. :wink:

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Sa 14.05.05 11:07 
user profile iconTobias1 hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
2:
form2.show;
form1.hide;


Ich würde eher Form2.ShowModal nehmen.