Author: aolk
Date: 2006-08-03 08:38:44 -0400 (Thu, 03 Aug 2006)
New Revision: 63285
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
2006-07-03 Alexander Olk <[EMAIL PROTECTED]>
* Control.cs: Removing the controls in a ControlCollection with
Clear now hides the controls as expected. Fixes bug #78804.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-08-03 10:26:22 UTC (rev 63284)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-08-03 12:38:44 UTC (rev 63285)
@@ -1,3 +1,8 @@
+2006-07-03 Alexander Olk <[EMAIL PROTECTED]>
+
+ * Control.cs: Removing the controls in a ControlCollection with
+ Clear now hides the controls as expected. Fixes bug #78804.
+
2006-08-03 Jackson Harper <[EMAIL PROTECTED]>
* Control.cs: Revert previous focus patch, it breaks reflector.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2006-08-03 10:26:22 UTC (rev 63284)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2006-08-03 12:38:44 UTC (rev 63285)
@@ -399,7 +399,7 @@
// MS sends remove events in reverse order
while (list.Count > 0) {
- RemoveAt(list.Count - 1);
+ Remove((Control)list[list.Count - 1]);
}
}
@@ -516,6 +516,8 @@
list.Remove(value);
value.ChangeParent(null);
+
+ value.Hide ();
owner.UpdateChildrenZOrder();
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches