Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Use of more forms.

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

782 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