[Mono-bugs] [Bug 80280][Maj] New - Validated not raised properly
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Dec 16 17:38:42 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=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: toshok at ximian.com
+ReportedBy: georgegiolfan at yahoo.com
+QAContact: mono-bugs at ximian.com
+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).
More information about the mono-bugs
mailing list