Solved

Use of more forms.

Posted on 1997-10-01
3
131 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

12 Experts available now in Live!

Get 1:1 Help Now