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 [EMAIL PROTECTED]

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

--- shadow/80280        2006-12-16 17:38:42.000000000 -0500
+++ shadow/80280.tmp.24310      2006-12-16 17:38:42.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 80280
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Windows XP
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Windows.Forms
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Validated not raised properly
+
+Description of Problem:
+It seems Validated is not raised for a control when another control in a 
+different container is selected.
+
+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() {
+        UserControl Control1 = new UserControl();
+        UserControl Control2 = new UserControl();
+        UserControl Container1 = new UserControl();
+        Container1.Controls.Add(Control1);
+        UserControl Container2 = new UserControl();
+        Container2.Controls.Add(Control2);
+        Controls.AddRange(new Control[] { Container1, Container2 });
+        Control1.Validated += delegate(object sender, EventArgs e) {
+            MessageBox.Show("Validated");
+        };
+        Control1.Select();
+        Control2.Select();
+    }
+}
+
+Actual Results:
+Nothing.
+
+Expected Results:
+A message box is displayed.
+
+How often does this happen? 
+Always (tested on Mono 1.2.2.1 Build 0 for Windows XP and Mono compiled 
+from SVN on Fedora Core 6).
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to