[Mono-bugs] [Bug 71494][Nor] New - Exception 'Argument is out of range.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 19 Jan 2005 18:49:21 -0500 (EST)


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 rogerio.araujo@gmail.com.

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

--- shadow/71494	2005-01-19 18:49:21.000000000 -0500
+++ shadow/71494.tmp.6061	2005-01-19 18:49:21.000000000 -0500
@@ -0,0 +1,38 @@
+Bug#: 71494
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rogerio.araujo@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Exception 'Argument is out of range.
+
+When i press backspace on a selected text in textbox i got the error:
+
+Exception 'Argument is out of range.
+
+Parameter name: startIndex + length > this.length
+	 at System.String.Substring ()
+	 at System.Windows.Forms.Document.Draw ()
+	 at System.Windows.Forms.TextBoxBase.PaintControl ()
+	 at System.Windows.Forms.TextBoxBase.PaintControl ()
+	 at System.Windows.Forms.TextBoxBase.WndProc ()
+	 at System.Windows.Forms.TextBox.WndProc ()
+	 at System.Windows.Forms.Control+ControlNativeWindow.WndProc ()
+	 at System.Windows.Forms.NativeWindow.WndProc ()'
+Argument is out of range.
+
+
+To test it just create a new TextBox instance and add it to the form and
+the press [BackSpace].
+
+After this error the text that i type is now shown anymore.