[Mono-bugs] [Bug 379570] New: MWF fails to clean up TextBox context menu after two right clicks

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Apr 14 02:54:37 EDT 2008


           Summary: MWF fails to clean up TextBox context menu after two
                    right clicks
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i586
        OS/Version: openSUSE 10.3
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: atsushi at ximian.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development

The context menu of a textbox fails to hide himself after the following
procedure and the textbox shows two or more context menus (and none of them
works after all):

1) set focus to the textbox
2) right click and show the context menu
3) right click again on the text box and show the context menu. The shown
context menu would still work.
4) (move cursor and) right click again. The previous context menu does not get

---- pretty simple repro -----
using System;
using System.Windows.Forms;

public class TestForm : Form
        public static void Main ()
                Application.Run (new TestForm ());

        public TestForm ()
                TextBox tb = new TextBox ();
                Controls.Add (tb);

It ends up to prevent Application.Exit (looks like some threads still remain);
after closing the main window, the context menus still remain.

Additional note:
At 3) the context menu already loses keyboard control (even after the mouse
cursor moves in and the context menu should get activated).

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list