[Mono-bugs] [Bug 80013][Min] New - Changing MenuItem.Text does not produce immediate results
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Nov 23 03:08:07 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=80013
--- shadow/80013 2006-11-23 03:08:07.000000000 -0500
+++ shadow/80013.tmp.24076 2006-11-23 03:08:07.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 80013
+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: Changing MenuItem.Text does not produce immediate results
+
+Description of Problem:
+Changing MenuItem.Text does not produce immediate results.
+
+Steps to reproduce the problem:
+1. Compile and run the following program.
+using System;
+using System.Windows.Forms;
+class TestApplication {
+ static void Main() {
+ Application.Run(new TestForm());
+ }
+}
+class TestForm : Form {
+ public TestForm() {
+ Menu = new MainMenu();
+ Menu.MenuItems.Add(TestMenuItem);
+ TestMenuItem.Click += new System.EventHandler(TestMenuItem_Click);
+ }
+ MenuItem TestMenuItem = new MenuItem("Initial");
+ void TestMenuItem_Click(object sender, EventArgs e) {
+ TestMenuItem.Text = "Final";
+ }
+}
+2. Click on the menu.
+
+Actual Results:
+The text does not change. It will be displayed correctly if the form is
+repainted.
+
+Expected Results:
+The text changes immediately.
+
+How often does this happen?
+Always.
More information about the mono-bugs
mailing list