Solved

Use of more forms.

Posted on 1997-10-01
3
135 Views
Last Modified: 2010-04-04
IMPORTANT: I am a beginner, but I couldn't find the answer in my Delphi-books to my next question: I want to use more forms in ONE application. All the time I want the possibility to use more than one form, and not just at the start of the program. Which steps do I have to follow when I want to make an application with two forms and how do I have to save the whole project? And when I re-open the project, the second form I created is never visible, why?
Thanks for the answer! RoosieDB, The Netherlands.
0
Comment
Question by:RoosieDB
3 Comments
 
LVL 2

Expert Comment

by:Waldek
ID: 1346689
Do You will display two forms at start Your program ?
0
 

Author Comment

by:RoosieDB
ID: 1346690
Edited text of question
0
 

Accepted Solution

by:
crexes earned 50 total points
ID: 1346691
Hi...
When you want to add a Form to your application you can select:
"New Form" - button
OR
File/New Form - menu

Then you will get one new form (ex. Form2) AND a new unit (ex. Unit2). Every Form has got ONE unit wich contains the code to the specific Form.
If you want to call procedures or functions from Form2 when your Form1 is displaying (ex. you want to show Form2 and call the procedure Form2.Show) you MUST declarate your (in this case) Unit2 in your Unit1 under the "implementation" - topic in Unit1.
Ex:
---------
implementation
uses Unit2
---------
That explains to the compilator that it should look in Unit2 for the Form2.Show - procedure.

File/Save Project - meny saves the project... When you open your project only ONE form comes up - BUT the other one (this case Form2) is also integrated in the project. If you want to show this at design time you can pick it from the "Select form from list" - button.

Hope this helps...

//Crexes
Thomas


0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

816 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now