Răsfoiți Sursa

* Control.cs: Remove the ancient code in ResetText, which was setting
the internal field to String.Empty, instead of doing it for our Text
property, as .net does (which also causes a TextChanged event and all
the other related routines).
Fixes #531587.

2009-08-24 Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=140535

Carlos Alberto Cortez 16 ani în urmă
părinte
comite
38cedbcbfa

+ 8 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -1,3 +1,11 @@
+2009-08-24  Carlos Alberto Cortez <[email protected]>
+
+	* Control.cs: Remove the ancient code in ResetText, which was setting
+	the internal field to String.Empty, instead of doing it for our Text
+	property, as .net does (which also causes a TextChanged event and all
+	the other related routines).
+	Fixes #531587.
+
 2009-08-24  Carlos Alberto Cortez <[email protected]>
 
 	* TreeNodeCollection.cs: Correctly implement Contains by using a

+ 1 - 1
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs

@@ -4251,7 +4251,7 @@ namespace System.Windows.Forms
 		}
 
 		public virtual void ResetText() {
-			text = String.Empty;
+			Text = String.Empty;
 		}
 
 		public void ResumeLayout() {