Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show other forms on panel in Main Form?

Status
Not open for further replies.

doctorjellybean

Programmer
May 5, 2003
145
I have a MainForm, with a panel. What I would like is to show any other forms in the panel of the MainForm itself. I've been playing with the Align and Parent properties, but they don't seem to do the trick.

I used to use a 3rd party component to achieve this, but I believe it is possible within Delphi itself.
 
Got it sorted:

procedure TForm1.Button1Click(Sender: TObject);
begin
Form2 := TForm2.Create(nil);
Form2.Parent := Panel1;
Form2.Show;
end;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top