Autor Beitrag
crandzy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42

WIN 2000
D2006 Prof
BeitragVerfasst: Di 28.06.05 08:27 
Guten Morgen,

wie kann ich es anstellen das meine "Form4" vor meiner "Form1" geladet wird???
Hat da jemand eine Idee? Ich habs zuerst mit Form4.BringtoFront versucht aber des funktioniert nicht so ganz. Da bringt er immer einen Lesefehler

_________________
In Wirklichkeit ist die Realität ganz anders
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Di 28.06.05 08:33 
kommt drauf an, ob du Form4 schon am Anfang erzeugst (schau mal in Projekt -> Optionen -> Reiter Formulare, ob da Form4 bei automatisch erzeugten Formularen steht). Wenn, dann einfach Form4.Show; oder Form4.ShowModal;. Wenn nicht, dann

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
Form4 := TForm4.Create(Self);
Form4.ShowModal; // oder Form4.Show
// wenn ShowModal, dann
FreeAndNil(Form4);
// wenn nicht ShowModal, dann kannst du die Form noch nicht hier freigeben, das aber nicht vergessen!



MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems
ManuelGS
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 173

Win XP HE, Suse Linux
D6, D7, D2005 Personal
BeitragVerfasst: Di 28.06.05 08:35 
projektdatei (.dpr) bearbeiten und reihenfolge der forms, wie sie geladen werden, direkt umändern
ausblenden Delphi-Quelltext
1:
2:
Application.CreateForm(TForm2, Form2);
Application.CreateForm(TForm1, Form1);


Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.

_________________
"Leben ist gänzlich Bühne und Spiel; so lerne denn spielen
und entsage dem Ernst - oder erdulde das Leid." - Palladas von Alexandria
crandzy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42

WIN 2000
D2006 Prof
BeitragVerfasst: Di 28.06.05 08:44 
@ Mr.Saint: Danke aber dann bringt er mir einen Zugriffsfehler.

@ ManuelGS: Danke so funktionierts :lol:

_________________
In Wirklichkeit ist die Realität ganz anders