Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

FORM on another FORM

Posted on 2001-09-16
4
205 Views
Last Modified: 2010-04-06
Hi I want to reuse a form as a part of a mainform. Is it possible to use the form as a control. I've tried to set the property parent (parent was a panel) etc. But the form will still  be a standalone form.

0
Comment
Question by:Avataris
  • 2
4 Comments
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6485509
Hello
 
  you have to show the form first,

//==
  Form2.show;
  Form2.Parent := Panel1;

but if you have Delphi5, try to use the frames

0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6485514
also may it's view, but not show within the panel, so adjust the top and left properties

procedure TForm1.Button1Click(Sender: TObject);
begin
  Form2.show;
  Form2.Parent := Panel1;
  Form2.Left := 10; // or any position you would like
  Form2.Top := 10;
end;
0
 

Accepted Solution

by:
duti earned 50 total points
ID: 6485528
Hi,

In Delphi 5, use the docking stuff.

Put a panel on the mainform.  When you want to reuse the form2, do following :

form2.ManualDock(formMain.panel1);
form2.Show;
// alClient = to fill the complete panel
form2.Align := alClient;
0
 

Author Comment

by:Avataris
ID: 6485671
Thank you :)
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 238
Delphi Form ownership 4 111
Run video youtube webbrowse 10 65
Magic Software info 18 138
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question