[Mono-bugs] [Bug 78109][Nor] Changed - Inserting text into existing (selected) text in a TextBox sometimes throws an ArgumentOutOfRangeException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu May 11 02:53:23 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 atsushi at ximian.com.

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

--- shadow/78109	2006-04-14 08:52:26.000000000 -0400
+++ shadow/78109.tmp.16556	2006-05-11 02:53:23.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 78109
 Product: Mono: Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Windows.Forms
 AssignedTo: peter at novonyx.com                            
 ReportedBy: xenomorph2 at onlinehome.de               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -60,6 +60,36 @@
 System.Windows.Forms.Application:RunLoop (Boolean Modal,
 System.Windows.Forms.ApplicationContext context)
 in [0x00007] (at
 /home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:292)
 System.Windows.Forms.Application:Run (System.Windows.Forms.Form mainForm)
 in <0x00167> WordPad.WordPad:Main (System.String[] args)
+
+------- Additional Comments From atsushi at ximian.com  2006-05-11 02:53 -------
+I think it is one of general editing problem in RichTextBox. I created
+a simple repro code and steps:
+
+using System;
+using System.Windows.Forms;
+
+public class Test : Form
+{
+	public static void Main ()
+	{
+		Application.Run (new Test ());
+	}
+
+	public Test ()
+	{
+		this.Width = 100;
+		this.Height = 100;
+		RichTextBox rtb = new RichTextBox ();
+		rtb.Width = 40;
+		rtb.Height = 80;
+		Controls.Add (rtb);
+	}
+}
+
+Run this program, and try to enter "123 45". After the whitespace, it
+clips the text. And when you enter 5 (it would be dependent on the
+actual fonts you use), it will result in the same kind of error.
+


More information about the mono-bugs mailing list