* Form.cs (Close): if the form is modal, don't Dispose of it, only
authorChris Toshok <toshok@novell.com>
Fri, 3 Nov 2006 21:10:34 +0000 (21:10 -0000)
committerChris Toshok <toshok@novell.com>
Fri, 3 Nov 2006 21:10:34 +0000 (21:10 -0000)
commitd061b3eac408ee8b5111a7222b8582f275b758ec
treea0a351b2e20ae7e8ab04fe771471f6517f703693
parentcf461186330ffef2125a075f1d73ecf7a665a9a6
* Form.cs (Close): if the form is modal, don't Dispose of it, only
Hide it.
(WndProc): don't Dispose after handling the WM_CLOSE message.

* Application.cs (RunLoop): toplevels is a list of Forms, so treat
them as such, instead of using casts from Control to Form.  Also,
don't Dispose of the modal dialog when we fall out of the loop -
Close() it instead.

fixes bug #79813.

2006-11-03  Chris Toshok  <toshok@ximian.com>

svn path=/trunk/mcs/; revision=67327
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs