[Mono-bugs] [Bug 78116][Maj] New - TextBox TextChanged event gets fired before KeyPress event and setting text with the Text property shouldn't select the text

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Apr 15 05:09:04 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 xenomorph2 at onlinehome.de.

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

--- shadow/78116	2006-04-15 05:09:04.000000000 -0400
+++ shadow/78116.tmp.2492	2006-04-15 05:09:04.000000000 -0400
@@ -0,0 +1,32 @@
+Bug#: 78116
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: xenomorph2 at onlinehome.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TextBox TextChanged event gets fired before KeyPress event and setting text with the Text property shouldn't select the text
+
+In mwf the TextChanged event for a TextBox gets fired before the KeyPress
+event. This behaviour is contrary to windows where the KeyPress event gets
+fired before the TextChanged event (which makes much more sense).
+
+An other problem is that when you assign text with the Text property the
+text gets selected in mwf. ms swf doesn't select the text but sets the
+caret to the first position (SelectionStart = 0).
+
+Attached is a sample app.
+
+Don't look at the colordialog button :).
+To validate the second problem enter a number with a value higher than 240.
+For the first problem just enter some numbers and you will see the output
+when TextChanged and KeyPress gets called on the console.


More information about the mono-bugs mailing list