[Mono-bugs] [Bug 82371][Wis] Changed - TextBox.SelectionLength method returns -1 if nothing selected

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Aug 10 14:24:49 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 monkey at jpobst.com.

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

--- shadow/82371	2007-08-10 14:24:36.000000000 -0400
+++ shadow/82371.tmp.31051	2007-08-10 14:24:49.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 82371
 Product: Mono: Class Libraries
 Version: 1.2
 OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Wishlist
 Component: Windows.Forms
 AssignedTo: monkey at jpobst.com                            
 ReportedBy: migliore.carmelo at gmail.com               
 QAContact: mono-bugs at ximian.com
@@ -69,6 +69,23 @@
 }
 
 ------- Additional Comments From migliore.carmelo at gmail.com  2007-08-08 09:11 -------
 Created an attachment (id=19735)
 Test Case
 
+
+------- Additional Comments From monkey at jpobst.com  2007-08-10 14:24 -------
+Fixed in r83829.
+
+2007-08-10  Jonathan Pobst  <monkey at jpobst.com>
+
+	* TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
+				1.1		2.0
+	Handle Not Created	-1		0
+	Handle Created		0		0
+	[Fixes bug #82371]
+
+2007-08-10  Jonathan Pobst  <monkey at jpobst.com>
+
+	* TextBoxTest.cs: New test for 82371 to illustrate SelectionLength
+value when
+	no text is selected.


More information about the mono-bugs mailing list