Ich möchte gern unter Delphi7 ein Form2 im Form1 aufrufen.<br>
Unter Delphi 5 habe ich mehrerer Programme mit folgendem Code erstellt:<br><br>
procedure TForm1.Button1Click(Sender: TObject);
<br>
begin<br>
Form2.Parent := Form1;<br>
Form2.Borderytyle := BSNone;<br>
Form2.Windowstate := WSMAximized;<br>
Form2.Show;<br>
end;<br>
<br>
In Delphi7 bekomme ich zumindest teilweise mit dieser Vorgehensweise Schutzverletzungen (versuchte einen Fehler in ntdll.dll...oder so).
<br>
Ich kenne auch die neuere Möglichkeit von Herrn Kosch mit den "CreateParams/override" des Formulars Form2.
<br>
Allerdings verstehe ich nicht, warum das bei meinen Delphi5-Apllikationen immer so einfach ging und jetzt auf einmal unter D7 zu Fehlern führt...
<br>
Kann mir da jemand weiter helfen ?
Unter Delphi 5 habe ich mehrerer Programme mit folgendem Code erstellt:<br><br>
procedure TForm1.Button1Click(Sender: TObject);
<br>
begin<br>
Form2.Parent := Form1;<br>
Form2.Borderytyle := BSNone;<br>
Form2.Windowstate := WSMAximized;<br>
Form2.Show;<br>
end;<br>
<br>
In Delphi7 bekomme ich zumindest teilweise mit dieser Vorgehensweise Schutzverletzungen (versuchte einen Fehler in ntdll.dll...oder so).
<br>
Ich kenne auch die neuere Möglichkeit von Herrn Kosch mit den "CreateParams/override" des Formulars Form2.
<br>
Allerdings verstehe ich nicht, warum das bei meinen Delphi5-Apllikationen immer so einfach ging und jetzt auf einmal unter D7 zu Fehlern führt...
<br>
Kann mir da jemand weiter helfen ?
Comment