[Mono-bugs] [Bug 81106][Nor] Changed - TextBox: Invalidated event fires too much when changing ForeColor

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Mar 19 18:50:43 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 jackson at ximian.com.

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

--- shadow/81106	2007-03-18 22:08:58.000000000 -0500
+++ shadow/81106.tmp.14058	2007-03-19 17:50:43.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 81106
 Product: Mono: Class Libraries
 Version: 1.2
 OS: GNU/Linux [Other]
 OS Details: 
-Status: NEW   
-Resolution: 
-Severity: 
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
 Priority: Normal
 Component: Windows.Forms
 AssignedTo: jackson at ximian.com                            
 ReportedBy: gert.driesen at pandora.be               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: 1_2
@@ -19,6 +19,18 @@
 When the ForeColor of a TextBox is modified before the handle is created, 
 then the Invalidated event fires 3 times once the handle is actually 
 created (while it should not have fired).
 
 I've committed a unit test (marked NotWorking) for ForeColor to 
 TextBoxTest.cs that currently fails because of this.
+
+------- Additional Comments From jackson at ximian.com  2007-03-19 17:50 -------
+OK, this is fixed now.  The test still will fail sometimes because of
+stray LostFocus events causing an Invalidate on the textboxes that
+have been used in previous tests.  To fix this we should probably
+change the unit tests to create a MyTextBox class that tracks the
+invalidation count itself.
+
+This does point to a bug in MWF too, where we are sending LostFocus to
+controls that are probably no longer visible. 
+
+


More information about the mono-bugs mailing list