Hi!
Using two Forms is a little bit special, if you want to embed the second.
Just develop your second Form as if it is a app on its own.
The you need that recursive uses:
Unit1 uses Unit2 in the Interface
Unit2 uses Unit1 in the Implementation
Then you have to connect Form2 to the Panel in Form1:
procedure TForm2.FormCreate(Sender: TObject);
begin
Form2.Parent := Form1.Panel1;
Form2.left := ...
Fom2.top := ...
end;
Works without problems
Background: I had a little application (Form2) that I wanted to embed in Form1.
Instead of doing all the stuff again I embedded Form2 in the sidebar of Form1.
Just renaming the second Form plus the above code and it was done.
Winni