Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

FORM on another FORM

Posted on 2001-09-16
4
Medium Priority
?
212 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
[X]
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
  • 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 150 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

636 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