Author: toshok
Date: 2006-11-15 12:44:19 -0500 (Wed, 15 Nov 2006)
New Revision: 67944

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
        [ fixes #79933 ]
        
        * Form.cs: in Close() don't do anything after we send the WM_CLOSE
        message.  no hiding, no disposing.

        in the WM_CLOSE handler, hide the form if it's modal.

2006-11-15  Chris Toshok  <[EMAIL PROTECTED]>



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-15 17:20:39 UTC (rev 67943)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-15 17:44:19 UTC (rev 67944)
@@ -1,5 +1,14 @@
 2006-11-15  Chris Toshok  <[EMAIL PROTECTED]>
 
+       [ fixes #79933 ]
+       
+       * Form.cs: in Close() don't do anything after we send the WM_CLOSE
+       message.  no hiding, no disposing.
+
+       in the WM_CLOSE handler, hide the form if it's modal.
+
+2006-11-15  Chris Toshok  <[EMAIL PROTECTED]>
+
        * XplatUIX11.cs: use AddExpose instead of sending a message.
        fixes textbox border drawing.
 

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2006-11-15 17:20:39 UTC (rev 67943)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2006-11-15 17:44:19 UTC (rev 67944)
@@ -1173,10 +1173,6 @@
                                return;
 
                        XplatUI.SendMessage(this.Handle, Msg.WM_CLOSE, 
IntPtr.Zero, IntPtr.Zero);
-                       if (is_modal)
-                               Hide ();
-                       else
-                               Dispose ();
                }
 
                public void LayoutMdi(MdiLayout value) {
@@ -1794,6 +1790,7 @@
                                                        DialogResult = 
DialogResult.None;
                                                        closing = false;
                                                }
+                                               Hide ();
                                        }
                                        return;
                                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to