Author: andreia
Date: 2008-02-07 20:37:53 -0500 (Thu, 07 Feb 2008)
New Revision: 95215

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
* Form.cs: When closing forms, get focus back to the active control of the
active form. [Fixes #341314, corner case]

2008-02-08  Andreia Gaita <[EMAIL PROTECTED]>

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-02-08 01:32:34 UTC (rev 95214)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-02-08 01:37:53 UTC (rev 95215)
@@ -1,3 +1,8 @@
+2008-02-08  Andreia Gaita <[EMAIL PROTECTED]>
+
+       * Form.cs: When closing forms, get focus back to the active control of 
the
+       active form. [Fixes #341314, corner case]
+       
 2008-02-07  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * MdiClient.cs: After we move the scrollbars, invalidate the NC

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2008-02-08 01:32:34 UTC (rev 95214)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2008-02-08 01:37:53 UTC (rev 95215)
@@ -2609,7 +2609,9 @@
                                if (is_modal) {
                                        Hide ();
                                } else {
-                                       Dispose ();
+                                       Dispose ();                             
        
+                                       if (act != this)
+                                               act.SelectActiveControl ();
                                }
                                mdi_parent = null;
                        } else {

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

Reply via email to