[Mono-bugs] [Bug 79705][Cos] New - Setting MenuItem.Visible to false does not hide the menu immediately

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Oct 20 06:32:28 EDT 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=79705

--- shadow/79705	2006-10-20 06:32:28.000000000 -0400
+++ shadow/79705.tmp.1846	2006-10-20 06:32:28.000000000 -0400
@@ -0,0 +1,55 @@
+Bug#: 79705
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Windows XP
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Setting MenuItem.Visible to false does not hide the menu immediately
+
+Setting MenuItem.Visible to false does not hide the menu immediately. 
+
+Steps to reproduce the problem:
+Compile and run the following program:
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+class TestApplication {
+    static void Main() {
+        Application.Run(new TestForm());
+    }
+}
+class TestForm : Form {
+    public TestForm() {
+        MenuItem1.Click += new EventHandler(MenuItem1_Click);
+        MenuItem MenuItem2 = new MenuItem("Second menu");
+        Menu = new MainMenu(new MenuItem[] { MenuItem1, MenuItem2 });
+    }
+    MenuItem MenuItem1 = new MenuItem("First menu");
+    void MenuItem1_Click(object sender, EventArgs e) {
+        MenuItem1.Visible = false;
+    }
+}
+
+2. Click on "First menu".
+Actual Results:
+The menu remains visible.
+
+Expected Results:
+The menu should disappear immediately.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+The menu is not displayed after the form is resized.


More information about the mono-bugs mailing list