[Mono-bugs] [Bug 80590][Min] Changed - TextBox.ForeColor behavior when ReadOnly is true

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Mar 9 19:49:42 EST 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 georgegiolfan at yahoo.com.

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

--- shadow/80590	2007-03-09 18:46:10.000000000 -0500
+++ shadow/80590.tmp.1864	2007-03-09 19:49:41.000000000 -0500
@@ -86,6 +86,25 @@
 		base.OnLoad(e);
 		t.ForeColor = Color.Red;
 	}
 }
 
 Expected results: The text should not be red.
+
+------- Additional Comments From georgegiolfan at yahoo.com  2007-03-09 19:49 -------
+using System.Drawing;
+using System.Windows.Forms;
+class TestForm : Form {
+	static void Main() {
+		Application.Run(new TestForm());
+	}
+	TextBox t = new TextBox();
+	public TestForm() {
+		t.Text = "Test";
+		t.ReadOnly = true;
+		t.ForeColor = Color.Red;
+		t.ReadOnly = false;
+		Controls.Add(t);
+	}
+}
+
+Now the text should be red.


More information about the mono-bugs mailing list