2 forms in delphi 7

Please discuss general Delphi programming topics here.

2 forms in delphi 7

Postby dialeyj2 » July 31st, 2007, 1:33 am

im trying to creat a program that opens to a main screen and you have a

choice to click information or calculator. once you select one it will close

the main menu and open up which ever you selected?


how should i make it do this? :)
dialeyj2
Member
Member
 
Posts: 1
Joined: July 31st, 2007, 1:29 am

Postby Kambiz » July 31st, 2007, 10:49 pm

Add the unit of the second form (Unit2) to uses clause of the first unit (Unit1).
On click, call Form2.ShowModal to show the second form.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 9 guests

cron