[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 18:46:10 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:16:11.000000000 -0500
+++ shadow/80590.tmp.1046	2007-03-09 18:46:10.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 80590
 Product: Mono: Class Libraries
 Version: 1.2
 OS: other
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Minor
 Component: Windows.Forms
 AssignedTo: jackson at ximian.com                            
 ReportedBy: georgegiolfan at yahoo.com               
 QAContact: mono-bugs at ximian.com
@@ -64,6 +64,28 @@
 to ForeColor, BackColor, Invalidate, etc. Maybe this MWF behavior should 
 be documented if it is left as it is now.
 
 ------- Additional Comments From jackson at ximian.com  2007-03-09 18:16 -------
 Fixed in SVN. Thanks for the report.
 
+
+------- Additional Comments From georgegiolfan at yahoo.com  2007-03-09 18:46 -------
+using System;
+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;
+		Controls.Add(t);
+	}
+	protected override void OnLoad(EventArgs e) {
+		base.OnLoad(e);
+		t.ForeColor = Color.Red;
+	}
+}
+
+Expected results: The text should not be red.


More information about the mono-bugs mailing list