M
Matt Gilarde
Guest
The dialog is disposed when the ShowDialog method returns. I don't think that there's a way for us to tell that ShowDialog returned because the dialog box was hidden instead of closed. I believe that it's implemented this way because we don't know that it's a dialog box until ShowDialog is called. Until then it's just a form like any other form. You can set the DisposeDialogOnClose property at the form level so you can set it to false when you hide a dialog box to prevent the automatic disposal.
Continue reading...
Continue reading...