Hab das Problem schon gelöst...
Vielen Danke nochmal an Motzi!!
für alle die irgendwann nochmal das gleich Problem haben:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14:
| begin Application.Initialize; frmLogin := TfrmLogin.Create(Application); if frmLogin.ShowModal = mrOk then Begin Application.CreateForm(TForm1, Form1); Application.CreateForm(TForm2, Form2); Application.CreateForm(TfrmInfo, frmInfo); Application.Run; end Else Application.Terminate; end. |
Im frmLogin bei erfolgreicher Prüfung nur noch
ModalResult:= mrOk; setzen und das wars...!
PS: @Elite* wenn man das Hauptformular schließt wird die Anwendung beendet...
gruß andy
Moderiert von
Klabautermann: Code durch Delphi-Tags ersetzt.