delphi - Form1.Hide vs Form1.Close -


Works better with opening a new look and closing the old one, form1.hide Or form1.close ?

Click on the button to click on Form 1:

  Form1.Hide; Form2.Show;  

And then it gets trapped in the debugging session. (Only happened once -_-)

Then when I use

  form1.close; Form2.Show;  

Close all forms What is the difference between the two? ( shutdown actually close everything xD)

Hide simply sets false to visible

close the fire OnCloseQuery and on-close events. If the form in question is the main form of application, the application will be terminated. Depending on CloseAction , either hide ( CloseAction = caHide ), minimize ( CloseAction = caMinimize ) or free yourself ( CloseAction = Caffeine )

Your second question is trying to reach you, this is not clear about.


Comments