[Mono-bugs] [Bug 79493][Nor] New - Selecting TextBox's content beyond the Form makes the text unselected

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 25 10:58:14 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 kuba.brecka at gmail.com.

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

--- shadow/79493	2006-09-25 10:58:14.000000000 -0400
+++ shadow/79493.tmp.895	2006-09-25 10:58:14.000000000 -0400
@@ -0,0 +1,65 @@
+Bug#: 79493
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Windows XP SP1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: kuba.brecka at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Selecting TextBox's content beyond the Form makes the text unselected
+
+Tested using Windows XP SP1, Mono 1.1.17.1.
+
+Steps to reproduce:
+1. Run the following code.
+2. Unselect the text in the TextBox.
+3. Move the form somewhere to the center of the screen (so there is some
+space to the left of the form).
+4. Start selecting the text in the TextBox with your mouse from the right
+(start with the "l" letter).
+5. When you have selected the whole text, drag the mouse a little bit more
+to the left (so the cursor leaves the form).
+6. You'll notice that the whole text gets unselected - this is the wrong
+behaviour.
+
+Actual results:
+At step 5, the whole text gets unselected.
+
+Expected results:
+The text should remain selected.
+
+
+Reproduce code:
+
+using System;
+using System.Windows.Forms;
+
+namespace MonoTest26
+{
+    public class Form1 : Form
+    {
+        static void Main()
+        {
+            Application.Run(new Form1());
+        }
+
+        public Form1()
+        {
+            TextBox T = new TextBox();
+            T.Font = new
+System.Drawing.Font(System.Drawing.FontFamily.GenericSerif, 20);
+            T.Width = 200;
+            T.Text = "abcdefghijkl";
+
+            Controls.Add(T);
+        }
+    }
+}


More information about the mono-bugs mailing list