Creating forms when needed (500 points)
Posted on 2007-11-19
This question may be simple to many but I am a beginner with Delphi.
When a user clicks a button, I want a form to appear. At the moment I use Form2.Show, Form3.ShowModal, etc. However there are a lot of forms and this takes a lot of memory to create all of them when the program is first run. How can I create these forms just if I need them?
I am using Delphi 6.
As this is urgent, I am giving the maximum 500 points for this. Thanks.