[Mono-bugs] [Bug 81736][Nor] New - TextBox.Cut() should emit TextChanged

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri May 25 14:46:05 EDT 2007


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 toshok at ximian.com.

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

--- shadow/81736	2007-05-25 14:46:05.000000000 -0400
+++ shadow/81736.tmp.31677	2007-05-25 14:46:05.000000000 -0400
@@ -0,0 +1,41 @@
+Bug#: 81736
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: jackson at ximian.com                            
+ReportedBy: toshok at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TextBox.Cut() should emit TextChanged
+
+MS prints CHANGED, mono prints nothing.
+
+pretty easy test (and fix, hopefully :)
+
+using System;
+using System.Windows.Forms;
+
+public class Foo : Form {
+        public static void Main (string[] args) {
+                TextBox tb = new TextBox ();
+
+                tb.Text = "hi there";
+
+                tb.TextChanged += new EventHandler (changed);
+
+                tb.SelectAll ();
+                tb.Cut ();
+        }
+
+        public static void changed (object o, EventArgs ev) {
+                 Console.WriteLine ("CHANGED");
+        }
+}


More information about the mono-bugs mailing list