[Mono-bugs] [Bug 76212][Maj] New - TextBox.Text removes last line if user doesn't add extra newline

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Sep 24 08:16:44 EDT 2005


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 mstrum at gmail.com.

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

--- shadow/76212	2005-09-24 08:16:44.000000000 -0400
+++ shadow/76212.tmp.27892	2005-09-24 08:16:44.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 76212
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Fedora Core 4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: mstrum at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TextBox.Text removes last line if user doesn't add extra newline
+
+(Using Mono 1.1.9)
+
+When getting text from a TextBox (string s = textBox1.Text) where the last
+character entered by the user was not a newline, the last line is missing.  
+
+This is pretty major (data loss).
+
+Steps to reproduce the problem:
+1. Create a TextBox control (AcceptReturn, Multiline = true)
+2. Enter a few lines of text and don't hit return on the last line
+3. Have a button that does MessageBox.Show(textBox.Text);
+
+I typed in:
+
+test1
+test2
+test3
+
+Actual Results:
+
+test1
+test2
+
+Expected Results:
+
+test1
+test2
+test3
+
+How often does this happen? 
+
+Everytime the user does not add a newline at the end of the multiline text


More information about the mono-bugs mailing list