Dialog Close

Message forms close when the user clicks the default button. Then runtime performs these tasks in this order:

  1. Terminate helps.

  2. Free all form structures.

  3. Destroy the window.