Is a System.Windows.Forms.Form automatically disposed when the user closes it with the top right X, or Alt+F4 ? The form is shown with form.Show(this), not form.ShowDialog(…);
Is a System.Windows.Forms.Form automatically disposed when the user closes it with the top right
Share
With
Show, yes it is (at the end ofWmClose). WithShowDialog, no it isn’t. Fun ;-pFor ShowDialog, see MSDN:
To prove it, though: