Author: everaldo
Date: 2007-09-05 05:59:12 -0400 (Wed, 05 Sep 2007)
New Revision: 85344

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
        * Control.cs: Fix last patch regression, prevent forms to update zorder 
when
        setting visible property.

2007-09-05  Everaldo Canuto  <[EMAIL PROTECTED]>



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-09-05 09:46:36 UTC (rev 85343)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-09-05 09:59:12 UTC (rev 85344)
@@ -1,5 +1,10 @@
 2007-09-05  Everaldo Canuto  <[EMAIL PROTECTED]>
 
+       * Control.cs: Fix last patch regression, prevent forms to update zorder 
when
+       setting visible property.
+
+2007-09-05  Everaldo Canuto  <[EMAIL PROTECTED]>
+
        * Control.cs: Update zorder after control creation in SetVisibleCore, 
it 
        fix zorder for controls initially created as non visible. Fixes #82667.
 

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2007-09-05 09:46:36 UTC (rev 85343)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2007-09-05 09:59:12 UTC (rev 85344)
@@ -4750,7 +4750,8 @@
                                
                                if (is_visible && ((window.Handle == 
IntPtr.Zero) || !is_created)) {
                                        CreateControl();
-                                       UpdateZOrder ();
+                                       if (!(this is Form))
+                                               UpdateZOrder ();
                                }
 
                                if (IsHandleCreated) {

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

Reply via email to