[Mono-bugs] [Bug 80419][Min] New - OnEnter called more than one time

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Dec 31 16:01:38 EST 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 georgegiolfan at yahoo.com.

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

--- shadow/80419	2006-12-31 16:01:38.000000000 -0500
+++ shadow/80419.tmp.29933	2006-12-31 16:01:38.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 80419
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Windows XP
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: OnEnter called more than one time
+
+Description of Problem:
+OnEnter called more than one time
+
+Steps to reproduce the problem:
+Compile and run the following program.
+using System;
+using System.Windows.Forms;
+class TestForm : Form {
+    static void Main() {
+        Application.Run(new TestForm());
+    }
+    public TestForm() {
+        MyControl c = new MyControl();
+        Controls.Add(c);
+        ShouldDisplayMessage = true;
+    }
+    static bool ShouldDisplayMessage;
+    class MyControl : UserControl {
+        protected override void OnEnter(EventArgs e) {
+            base.OnEnter(e);
+            if (ShouldDisplayMessage)
+                Console.WriteLine("OnEnter");
+        }
+    }
+    
+}
+Actual Results:
+OnEnter written twice.
+
+Expected Results:
+OnEnter written once.
+
+How often does this happen? 
+Always


More information about the mono-bugs mailing list