[Mono-bugs] [Bug 78773][Nor] Changed - TextBoxBase: TextChanged event isn't fired when it's set by first time and gets a String.Empty value

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jul 6 05:48:52 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by unserkonig at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78773

--- shadow/78773	2006-07-06 05:41:36.000000000 -0400
+++ shadow/78773.tmp.21260	2006-07-06 05:48:52.000000000 -0400
@@ -21,6 +21,19 @@
 
 It happens when Text property is used by first time and gets a String.Empty
 value, previously having a non-empty value in the graphical text box.
 
 ------- Additional Comments From unserkonig at gmail.com  2006-07-06 05:41 -------
 Sample code at: http://pastebin.ca/80309
+
+------- Additional Comments From unserkonig at gmail.com  2006-07-06 05:48 -------
+Using the sample, after compiling, write something in the textbox,
+then press the "Clear" button. 
+
+TextChanged event should be fired, as the Clear button event handler
+sets the textbox.Text property to String.Empty, and the console should
+print "TEXT CHANGED to" (text changed to an empty string, basically),
+but nothing is printed in Mono.
+
+Observe that "TEXT CHANGED to" is printed to the console in .Net when
+the "Clear" button is clicked, thus showing that TextChanged event is
+fired correctly.


More information about the mono-bugs mailing list