[Mono-bugs] [Bug 80537][Cri] New - Button retreaves wrong output

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 17 00:35:36 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 hax_hp at yahoo.com.

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

--- shadow/80537	2007-01-17 00:35:36.000000000 -0500
+++ shadow/80537.tmp.19918	2007-01-17 00:35:36.000000000 -0500
@@ -0,0 +1,69 @@
+Bug#: 80537
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: hax_hp at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Button retreaves wrong output
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing. 
+Description of Problem: 
+ 
+ 
+Steps to reproduce the problem: 
+Ok well I was creating a simple Calculator..Code was sorta like this 
+--------------------- 
+Create a window.. 
+ex: 
+Window Form1 = new Window ("Danny's Basic Calculator"); 
+--------------------- 
+Create Calculator Buttons 1-0 and remaining components 
+ex: 
+Button CalButton1 = new Button("1"); so on.. 
+--------------------- 
+Add them to form.. 
+ex: 
+FixedControl1.Add(CalButton1); 
+FixedControl1.Move(PosotionCoordX,PositionCoordY); 
+--------------------- 
+Here is my PROBLEM!! 
+ 
+void CalButton1_Clicked(object sender , EventArgs a); 
+{ 
+   AnswerTextBox.Text = (AnswerTextBox.Text + "1"); 
+} 
+ 
+You see..AnswerTextBox is an Entry Widget..I did the correct conversions 
+from Double to String and so, so that is not the problem..Well evry time 
+I press the button CalButton1 at runtime it writes two 1's to my 
+AnswerTextBox control instead of 1 as specified in 
+"CalButton1_Clicked"..Try it and please find a solution for later 
+releases..If there is a solution allready please mail it to 
+me..Hax_Hp at Yahoo.com..Thank you!! 
+ 
+      
+ 
+Actual Results: 
+Two 1's in AnswerTextBox 
+ 
+ 
+Expected Results: 
+One 1 in AnswerTextBox 
+ 
+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..


More information about the mono-bugs mailing list