Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Use of more forms.

Posted on 1997-10-01
3
Medium Priority
?
141 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
[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
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 200 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

688 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