[Mono-bugs] [Bug 80537][Nor] Changed - Button retreaves wrong output

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 17 11:22:28 EST 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=80537

--- shadow/80537	2007-01-17 04:39:55.000000000 -0500
+++ shadow/80537.tmp.1718	2007-01-17 11:22:28.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 80537
 Product: Mono: Class Libraries
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: NOTABUG
 Severity: Unknown
 Priority: Normal
 Component: Windows.Forms
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: hax_hp at yahoo.com               
 QAContact: mono-bugs at ximian.com
@@ -64,6 +64,22 @@
 How often does this happen?  
 Allways!! 
  
 Additional Information: 
 This frustrated me for about 6 hours until I decided to file a 
 bug-report..Sorry I couldnt find a solution..I will keep trying though..
+
+------- Additional Comments From monkey at jpobst.com  2007-01-17 11:22 -------
+The problem is that you did the Int to String conversion, so you are
+doing string addition instead of number addition.  Adding strings
+together just concatenates them together:
+
+"dog" + "house" = "doghouse"
+
+You want number addition:
+
+1 + 1 = 2.
+
+So you need to change your String to an Int and add 1 to it, and then
+change the whole thing to a String for the TextBox:
+
+AnswerTextBox.Text = ((int)AnswerTextBox.Text + 1).ToString(); 


More information about the mono-bugs mailing list