Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple forms at one time

Status
Not open for further replies.

pierrotsc

Programmer
Nov 25, 2007
358
US
Is it possible to have 2 forms to be displayed on the screen at one time when the program starts?
Right now i click on a button and another form pops up. I would like it to open at the same time as the main form opens.
Thanks.
PO
 
Look at the main project file, and then after all the other lines, add "Form2.Show", and it should get you two forms at once.
 
at design time.
1. look at your program options, make sure the second form is in the autocreate list.

2. set the second forms visible to true.

now when you run the app both forms are shown,
(no code required).

Aaron
 
i have the second form in my autocreate list but i do not see where i can set the form to visible. i got 2 columns. one says autocreate and the other one says availble.
Thanks.
 
2. set the second forms visible to true...
... in the properties editor (Object Inspector) of Form2, change Form2.Visible to True.

Roo
Delphi Rules!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top