- World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.

  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!

    Send your Resume to 6000 Companies

    Question :
    How do I close a modal form? For that matter, what is the best way to close any form?
    Category Delphi Interview Questions
    Rating (0.3) By 36 users
    Added on 8/6/2012
    Views 252
    Rate it!

    Generally speaking, you call the form's Close method. This runs the OnClose event, which may decide it doesn't want to close, for example if there is unsaved data in the form. Close doesn't free the memory associated with the form, unless of course you put a call to Release in the form's OnClose event.

    If you want to close a form without giving it a chance to argue, call the form's Release method. This is similar to Free, but it allows event handlers (e.g. OnDestroy) to finish running before the memory goes away.

    Modal forms "end their modal state" when you set the form's ModalResult property to anything greater than zero. If you put a button on a modal form and set the button's ModalResult property to some value, then when the user clicks on that button the form will close with the result you specified. You can find out what the result was by calling ShowModal as a function; i.e. result := Form.ShowModal.

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

    Related Questions
    View Answer
    Are there any tools to help me migrate my applications to Delphi?
    View Answer
    Why do I get compile errors accessing the Sender object in events?
    View Answer
    How can I manipulate data programatically?
    View Answer
    How do I write a change password function for a Paradox table?
    View Answer
    Can I use the ODBC drivers that I got with ?
    View Answer
    Does Delphi support the back-end?
    View Answer
    How do we get access to a database from Delphi?
    View Answer
    I just bought Delphi. Where are the language and library reference manuals?
    View Answer
    What technical support do we get with Delphi?
    View Answer
    What if I do not have a CD-ROM drive?
    View Answer
    Where can I get a copy of Delphi?
    View Answer
    What is the history of Delphi?
    View Answer
    Can we write multi-user database applications in regular Delphi?
    View Answer
    What is the difference between Delphi and Delphi Client/Server?
    View Answer
    How tough is it to learn Delphi?
    View Answer
    How much disk space, memory, etc, do I need to run Delphi?
    View Answer
    What operating systems does Delphi support?
    View Answer
    What versions of Delphi are there?
    View Answer
    What is Delphi?
    View Answer
    What versions of Delphi are there?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

    View ALL Delphi Interview Questions

    User Options
    Sponsored Links

    Copyright ©2003-2015, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Cache = 0.015625 Seconds