[Mono-bugs] [Bug 80163][Min] Changed - TextBox.ContextMenu is not null

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Dec 6 09:42:49 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=80163

--- shadow/80163	2006-12-06 08:19:50.000000000 -0500
+++ shadow/80163.tmp.4278	2006-12-06 09:42:49.000000000 -0500
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: 1.2
 OS: All
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Minor
 Component: Windows.Forms
 AssignedTo: toshok at ximian.com                            
 ReportedBy: georgegiolfan at yahoo.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -50,6 +50,23 @@
 This is caused by the line
 ContextMenu = menu;
 in the TextBox.TextBox().
 I suggest not assigning the value of "menu" to the ContextMenu, but 
 displaying it when the user triggers the context menu if the ContextMenu 
 property returns null.
+
+------- Additional Comments From georgegiolfan at yahoo.com  2006-12-06 09:42 -------
+After this is fixed, ComboBox may require a review, since currently 
+the ComboBox.ContextMenu works only on the drop down button.
+
+using System.Windows.Forms;
+class TestForm : Form {
+    static void Main() {
+        Application.Run(new TestForm());
+    }
+    public TestForm() {
+        ComboBox ComboBox = new ComboBox();
+        ComboBox.ContextMenu = new ContextMenu();
+        ComboBox.ContextMenu.MenuItems.Add("Test");
+        Controls.Add(ComboBox);
+    }
+}


More information about the mono-bugs mailing list