Autor Beitrag
Janus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Do 27.03.03 14:27 
Hallo Leute
Ich habe eine MDI-Application mit einem Hauptformular und zu begin 1nem Child-Formular.

Ich erzeuge das Child-Formular selbst in der FormActivate Methode, da es nur bedingt erzeugt wird...

Nun erscheint jedoch eine Exception, die besagt dass keine MDI Formulare aktiv sind... Ich denke, dass das MainFormular noch nicht vollständig erzeugt wurde, wenn FormActivate aufgerufen wird ? Doch in welcher Prozedur soll ich denn das Child-Formular erzeugen ?

Gruss Janus

_________________
Don't give in the hate, that leaves to the dark side of the force !!!
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Do 27.03.03 14:50 
Hi,

schreibe den code in das OnShow-Ereignis des Hauptformulars, dann klappt es.

MFG

- Ernesto -
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Do 27.03.03 15:11 
Hallo nochmal,

im OnActivate sollte es eigentlich auch funktionieren. Kannst du mal bisschen code posten wie du das Child-formular erzeugst?

- Ernesto -