[Mono-bugs] [Bug 78779][Nor] Changed - ComboBox: TextChanged event never gets fired

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Aug 31 16:49:13 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 mkestner at ximian.com.

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

--- shadow/78779	2006-08-24 16:50:14.000000000 -0400
+++ shadow/78779.tmp.6553	2006-08-31 16:49:13.000000000 -0400
@@ -1,17 +1,17 @@
 Bug#: 78779
 Product: Mono: Class Libraries
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: REOPENED   
+Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: Windows.Forms
-AssignedTo: peter at novonyx.com                            
+AssignedTo: mkestner at ximian.com                            
 ReportedBy: unserkonig at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
 Summary: ComboBox: TextChanged event never gets fired
@@ -38,6 +38,33 @@
 Fixed, thank you very much for the report Carlos!
 
 ------- Additional Comments From unserkonig at gmail.com  2006-08-24 16:50 -------
 I mentioned to Jackson that this bug appeared again. Also, if you
 change the Text property from code (such comboBox.Text = "new value")
 the TextChanged event isn't fired. 
+
+------- Additional Comments From mkestner at ximian.com  2006-08-31 16:49 -------
+// Sample
+using System;
+using System.Windows.Forms;
+using System.Drawing;
+
+public class TestForm : Form
+{
+        static void Main ()
+        {
+                Application.Run (new TestForm ());
+        }
+        public TestForm ()
+        {
+                ComboBox combo_box = new ComboBox ();
+                combo_box.Location = new Point (10, 10);
+                combo_box.Parent = this;
+                combo_box.TextChanged += delegate (object o, EventArgs
+args)
+                {
+                        // This never gets called in Mono
+                        Console.WriteLine ("OnTextChanged :: " +
+((Control) o).Text);
+                };
+        }
+}


More information about the mono-bugs mailing list